summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopVectorize
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-04-24 08:15:31 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-04-24 08:15:31 +0000
commitf4575db2fdc4e1812932c83696a0579cb219a0dd (patch)
treec250cf872598dc72a02ee626de24d48e5db31e41 /llvm/test/Transforms/LoopVectorize
parent4f4dd17d056b02eaa64adf1cad99e14eceabde1b (diff)
downloadbcm5719-llvm-f4575db2fdc4e1812932c83696a0579cb219a0dd.tar.gz
bcm5719-llvm-f4575db2fdc4e1812932c83696a0579cb219a0dd.zip
X86: Emit test instead of constant shift + compare if the shift result is unused.
This allows us to compile return (mask & 0x8 ? a : b); into testb $8, %dil cmovnel %edx, %esi instead of andl $8, %edi shrl $3, %edi cmovnel %edx, %esi which we formed previously because dag combiner canonicalizes setcc of and into shift. llvm-svn: 207088
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud