SDAG does this, GISel doesn't.
See https://gcc.godbolt.org/z/sqjMx3Tfv
More context:
https://github.com/llvm/llvm-project/issues/57256
Paths
| Differential D135021
[GlobalISel] Combine abs(undef) -> 0 ClosedPublic Authored by paquette on Oct 1 2022, 2:17 PM.
Details
Summary SDAG does this, GISel doesn't. See https://gcc.godbolt.org/z/sqjMx3Tfv More context:
Diff Detail
Unit TestsFailed
Event TimelineThis revision is now accepted and ready to land.Oct 1 2022, 2:33 PM This revision was landed with ongoing or failed builds.Oct 1 2022, 3:16 PM Closed by commit rG8aedb435db7e: [GlobalISel] Combine abs(undef) -> 0 (authored by paquette). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 464523 llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/test/CodeGen/AArch64/GlobalISel/combine-unary-undef-to-zero.mir
|