We already do this in getNode, but the undef might appear during
another DAGCombine.
While here remove code for handling noop truncates. getNode checks
the types and won't a noop truncate.
Paths
| Differential D157910
[DAGCombiner] Fold trunc(undef) -> undef. ClosedPublic Authored by craig.topper on Aug 14 2023, 11:45 AM.
Details
Summary We already do this in getNode, but the undef might appear during While here remove code for handling noop truncates. getNode checks
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 14 2023, 12:03 PM This revision was landed with ongoing or failed builds.Aug 14 2023, 1:02 PM Closed by commit rG6299650f9788: [DAGCombiner] Fold trunc(undef) -> undef. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 550060 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/RISCV/pr64503.ll
|