]> granicus.if.org Git - llvm/commit
[InstCombine] make fold for icmp with sext more efficient; NFC
authorSanjay Patel <spatel@rotateright.com>
Tue, 20 Aug 2019 17:03:22 +0000 (17:03 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 20 Aug 2019 17:03:22 +0000 (17:03 +0000)
commitf066c9f7311d8d0b0579c13adc657f8945042f4e
treea8b61c563956d1a18be15d83b585941ee05261d1
parentf24aef8e06b889a07ebe9511bb2bca69bbf4635d
[InstCombine] make fold for icmp with sext more efficient; NFC

We were creating 2 instructions and relying on a subsequent fold
to invert a not(icmp). Create the final icmp directly instead.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369411 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp