When sign-extending i32 undef to i64, previously it was folded to 0. Replace with i64 undef. This eliminates instructions that set undefined ABI registers to 0
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This is not legal, because the result of sext must have the top bits either all zero or all ones, which undef does not guarantee. This change will lead to miscompiles.