diff options
author | Nate Begeman <natebegeman@mac.com> | 2004-10-23 00:50:23 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2004-10-23 00:50:23 +0000 |
commit | 31dfc52b81cc4d03f8b0c87b15b53412229b0154 (patch) | |
tree | 7ff5f26dd6bfdbef22f64f463141fd7ee8e74a35 /lib/Bytecode/Writer/SlotCalculator.cpp | |
parent | ec8430270a9f1adbf9b790319a1d4781658359fd (diff) |
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; }
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/SlotCalculator.cpp')
0 files changed, 0 insertions, 0 deletions