Teach the x86 backend to eliminate "test" instructions by using the EFLAGS
authorDan Gohman <gohman@apple.com>
Wed, 4 Mar 2009 02:33:24 +0000 (02:33 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 4 Mar 2009 02:33:24 +0000 (02:33 +0000)
commit12bbc52aa7ad84a944f14757f7f6d77b9fa3188f
tree93cb81be3b39c2996d259ddb9ee9a7195954120a
parent0744f09efc53d3352ac1caffc61f6e8239201c3b
Teach the x86 backend to eliminate "test" instructions by using the EFLAGS
result from add, sub, inc, and dec instructions in simple cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66004 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
lib/Target/X86/X86Instr64bit.td
lib/Target/X86/X86InstrInfo.td
test/CodeGen/X86/peep-test.ll [new file with mode: 0644]