This also shows we're missing zero_extend/sign_extend undef -> 0 fold in DAGCombiner.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Don't we need this in DAGCombine as well to handle cases where the same arg appears after another fold?
llvm/test/CodeGen/RISCV/min-max.ll | ||
---|---|---|
534 | We wouldn't hit the bug if we folded sext/zext undef in DAGCombiner. Instead we type legalize and hit the sext_inreg getNode bug. |
We wouldn't hit the bug if we folded sext/zext undef in DAGCombiner. Instead we type legalize and hit the sext_inreg getNode bug.