OSDN Git Service

[DAGCombine] optimizeSetCCOfSignedTruncationCheck(): handle inverted pattern
authorRoman Lebedev <lebedev.ri@gmail.com>
Sun, 2 Sep 2018 13:56:22 +0000 (13:56 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sun, 2 Sep 2018 13:56:22 +0000 (13:56 +0000)
commit41b17bcd0d14214488b50b973780766d6302d6d5
tree4aee75545a80357816416b741a2d10860ffb523a
parent339dfeb9d11c0c7685911a8f6bc25992af6b210f
[DAGCombine] optimizeSetCCOfSignedTruncationCheck(): handle inverted pattern

Summary:
A follow-up for D49266 / rL337166 + D49497 / rL338044.

This is still the same pattern to check for the [lack of]
signed truncation, but in this case the constants and the predicate
are negated.

https://rise4fun.com/Alive/BDV
https://rise4fun.com/Alive/n7Z

Reviewers: spatel, craig.topper, RKSimon, javed.absar, efriedma, dmgreen

Reviewed By: spatel

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D51532

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341287 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/TargetLowering.cpp
test/CodeGen/AArch64/lack-of-signed-truncation-check.ll
test/CodeGen/AArch64/signed-truncation-check.ll
test/CodeGen/X86/lack-of-signed-truncation-check.ll
test/CodeGen/X86/signed-truncation-check.ll