X86: remove redundant cmp against zero.
authorManman Ren <mren@apple.com>
Wed, 18 Jul 2012 21:40:01 +0000 (21:40 +0000)
committerManman Ren <mren@apple.com>
Wed, 18 Jul 2012 21:40:01 +0000 (21:40 +0000)
commit62a89f5808bbb620767d95adb784978ed2e7bff0
tree170f0bd3a274ea211c6ee4d6ee571eb114f3e68c
parentd4d961615c67082bc24bfa5d372a93a1dcff3457
X86: remove redundant cmp against zero.

Updated OptimizeCompare in peephole to remove redundant cmp against zero.
We only remove Compare if CF and OF are not used.

rdar://11855129

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@160454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrArithmetic.td
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/jump_sign.ll