X86: Remove test instructions proceeding shift by immediate instructions
authorDavid Majnemer <david.majnemer@gmail.com>
Wed, 22 May 2013 08:13:02 +0000 (08:13 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Wed, 22 May 2013 08:13:02 +0000 (08:13 +0000)
commit3b4b5367da29a1598dc333acf37652ef286e9225
tree8b0bd3b22763b28ac46b8406336f4fb787e19ab5
parent7849728485570f34bb100baef613a80d84450b08
X86: Remove test instructions proceeding shift by immediate instructions

Allow LLVM to take advantage of shift instructions that set the ZF flag,
making instructions that test the destination superfluous.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182454 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
test/CodeGen/X86/2012-08-17-legalizer-crash.ll
test/CodeGen/X86/cmp.ll
test/CodeGen/X86/peep-test-4.ll