summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/virtual-implicit-move-assignment.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-12-24 17:31:38 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-12-24 17:31:38 +0000
commit010337c8385b919f75d98f6cb383214817c13257 (patch)
treec23a474c8e335acf01b8411d5935bfda96db0677 /clang/test/CodeGenCXX/virtual-implicit-move-assignment.cpp
parent175543ac7817e78cb7f474353ae078f396c34f84 (diff)
downloadbcm5719-llvm-010337c8385b919f75d98f6cb383214817c13257.tar.gz
bcm5719-llvm-010337c8385b919f75d98f6cb383214817c13257.zip
InstCombine: Canonicalize (2^n)-1 - x into (2^n)-1 ^ x iff x is known to be smaller than 2^n.
This has the obvious advantage of being commutable and is always a win on x86 because const - x wastes a register there. On less weird architectures this may lead to a regression because other arithmetic doesn't fuse with it anymore. I'll address that problem in a followup. llvm-svn: 147254
Diffstat (limited to 'clang/test/CodeGenCXX/virtual-implicit-move-assignment.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud