Teach LowerBRCOND to recognize (xor (setcc x), 1). The xor inverts the condition...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 2 Feb 2009 08:07:36 +0000 (08:07 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 2 Feb 2009 08:07:36 +0000 (08:07 +0000)
commit67ad9db15b474a667f09eea5e32955a910c09e32
treeb27d3c9a49cf0e33f6d78f78213d2291446e4c00
parent585c51efbce42cae2ea64a65789984396ebe00e9
Teach LowerBRCOND to recognize (xor (setcc x), 1). The xor inverts the condition. It's normally transformed by the dag combiner, unless the condition is set by a arithmetic op with overflow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63505 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/smul-with-overflow-3.ll [new file with mode: 0644]