]> granicus.if.org Git - llvm/commit
[X86][X86 intrinsics]Folding cmp(sub(a,b),0) into cmp(a,b) optimization
authorMichael Zuckerman <Michael.zuckerman@intel.com>
Sun, 16 Apr 2017 13:26:08 +0000 (13:26 +0000)
committerMichael Zuckerman <Michael.zuckerman@intel.com>
Sun, 16 Apr 2017 13:26:08 +0000 (13:26 +0000)
commitaacdb999ef4973e84c91eb2017c51e6c279c1c51
tree36d78b771d4397f5295d4dbbdd377525cae71b01
parent2f3c5dbfdb6fc574fbe69f5b86748e97e28a2c61
[X86][X86 intrinsics]Folding cmp(sub(a,b),0) into cmp(a,b) optimization

This patch adds new optimization (Folding cmp(sub(a,b),0) into cmp(a,b))
to instCombineCall pass and was written specific for X86 CMP intrinsics.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300422 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/X86FsubCmpCombine.ll [new file with mode: 0644]