If the VT is i2, then 2 is really -2.
Test has not been commited yet, but diff shows the change.
Fixes PR55644.
Differential D126213
[DAGCombiner][AArch64] Don't fold (smulo x, 2) -> (saddo x, x) if VT is i2. craig.topper on May 23 2022, 8:41 AM. Authored by
Details 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? |