[InstCombine] add test for abs with dominating condition; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 22 Mar 2022 14:40:05 +0000 (10:40 -0400)
committerSanjay Patel <spatel@rotateright.com>
Tue, 22 Mar 2022 14:42:52 +0000 (10:42 -0400)
commitc4d74a93f65c07db4d80e199291e0da378305731
treede166773b7cfce16903c105d5f8b46205f913056
parentfe252f8ed6369acdb13d4e290d3b9dfe2ec4eb8e
[InstCombine] add test for abs with dominating condition; NFC

There's a potential miscompile or missed optimization with
propagating 'nsw' in the transform proposed in D122013, so
we need at least one more test for coverage.
llvm/test/Transforms/InstCombine/abs-intrinsic.ll