jameysharp requested cfallin for a review on PR #5706.
jameysharp opened PR #5706 from cprop-extend
to main
:
Also move these optimization rules to cprop.isle; it's where all the other similar rules are.
Like the other cprop rules, these can subsume any other rules. We can't do better than reducing an expression to a constant.
The new i64_sextend_imm64 and u64_uextend_imm64 constructors are useful helpers to clean up other code. I applied them to
imm64_icmp
while I was here, as well as using the existingty_mask
helper to clean upimm64_masked
.
cfallin submitted PR review.
jameysharp merged PR #5706.
Last updated: Nov 22 2024 at 16:03 UTC