As discussed on Issue #32161, this fold can be generalized a lot more than it currently is, but this patch at least adds vector support.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Seems pretty straight-forward to me, thanks.
llvm/test/Transforms/InstCombine/icmp.ll | ||
---|---|---|
1645–1646 | If some channel is undef in both constants, it can be undef in the new constant. |
If some channel is undef in both constants, it can be undef in the new constant.
https://alive2.llvm.org/ce/z/XJTfst