summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineCodeEmitter.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2004-10-23 00:50:23 +0000
committerNate Begeman <natebegeman@mac.com>2004-10-23 00:50:23 +0000
commit6cadac8f43bbe135ba1b6a69dc5c4018c1b3fe38 (patch)
tree76b3bbb0f21959a5b115f7808904e8ddce2dd058 /llvm/lib/CodeGen/MachineCodeEmitter.cpp
parent37a7102ccbc125177b186e2111986009828c8e72 (diff)
downloadbcm5719-llvm-6cadac8f43bbe135ba1b6a69dc5c4018c1b3fe38.tar.gz
bcm5719-llvm-6cadac8f43bbe135ba1b6a69dc5c4018c1b3fe38.zip
Kill casts from integer types to unsigned byte, when the cast was only used
as the shift amount operand to a shift instruction. This was causing us to emit unnecessary clear operations for code such as: int foo(int x) { return 1 << x; } llvm-svn: 17175
Diffstat (limited to 'llvm/lib/CodeGen/MachineCodeEmitter.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud