]> granicus.if.org Git - llvm/commit
[NFC][InstCombine] Non-canonical clamp pattern: non-canonical predicate tests
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 13 Aug 2019 08:14:13 +0000 (08:14 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 13 Aug 2019 08:14:13 +0000 (08:14 +0000)
commit22809c3933cef23eb591c90b512977263c37056d
tree7e54f679eb6eb31de9f2ca1812faf892b890be06
parent215d62ecff808d1ad418bbe5d5a2ae7bc1d0f055
[NFC][InstCombine] Non-canonical clamp pattern: non-canonical predicate tests

We can't handle 'uge' case because we can't ever get it,
there needs to be extra use on that compare or else it will be
canonicalized, but because of extra use we can't handle it.

'sge' case we can have.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368656 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/InstCombine/canonicalize-clamp-like-pattern-between-negative-and-positive-thresholds.ll