llvm-project
d9507a3e - [DAGCombine] Fix miscompilation caused by PR94008 (#94850)

Commit
1 year ago
[DAGCombine] Fix miscompilation caused by PR94008 (#94850) The pr description in #94008 mismatches with the code. > + When VT is smaller than ShiftVT, it is safe to use trunc. > + When VT is larger than ShiftVT, it is safe to use zext iff `is_zero_poison` is true (i.e., `opcode == ISD::CTTZ_ZERO_UNDEF`). See also the counterexample `src_shl_cttz2 -> tgt_shl_cttz2` in the alive2 proofs. Closes #94824.
Author
Parents
Loading