If the VT is i2, then 2 is really -2.
Test has not been commited yet, but diff shows the change.
Fixes PR55644.
Paths
| Differential D126213
[DAGCombiner][AArch64] Don't fold (smulo x, 2) -> (saddo x, x) if VT is i2. ClosedPublic Authored by craig.topper on May 23 2022, 8:41 AM.
Details Summary If the VT is i2, then 2 is really -2. Test has not been commited yet, but diff shows the change. Fixes PR55644.
Diff Detail
Event TimelineComment Actions LGTM - I don't think we'd see this problem in IR with the example test because we'd reduce the intrinsic if there's no use of the multiply result. We probably don't have the corresponding fold here because we don't expect to create these ops in SDAG? This revision is now accepted and ready to land.May 23 2022, 10:01 AM This revision was landed with ongoing or failed builds.May 23 2022, 11:14 AM Closed by commit rG569d8945f311: [DAGCombiner][AArch64] Don't fold (smulo x, 2) -> (saddo x, x) if VT is i2. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 431388 llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/pr55644.ll
|
clang-format not found in user’s local PATH; not linting file.