OSDN Git Service

Fix the "test" optimization to recognize "dec" as an add of
authorDan Gohman <gohman@apple.com>
Thu, 5 Mar 2009 19:32:48 +0000 (19:32 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 5 Mar 2009 19:32:48 +0000 (19:32 +0000)
commit4bfcf2a2a64785f3f0f0dd8fa6f4052d6cd7c08c
treee6efb093f9ff49415dc3f25dde1d398dd6a44fb4
parent8733db351a115a6f269e8814df2804f1b2172362
Fix the "test" optimization to recognize "dec" as an add of
negative one, as subtracts of immediates are canonicalized
to adds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66180 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/peep-test-0.ll [moved from test/CodeGen/X86/peep-test.ll with 100% similarity]
test/CodeGen/X86/peep-test-1.ll [new file with mode: 0644]