diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-01-13 00:30:23 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-01-13 00:30:23 +0000 |
commit | 30bebff456934bec78391fc220846dc63fb3fbe9 (patch) | |
tree | 26fca2d93e82e49a5d563b3181392685de647fdb /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | e1ac8d17422098756cb7ce62be6552096ebf9b34 (diff) | |
download | llvm-30bebff456934bec78391fc220846dc63fb3fbe9.zip llvm-30bebff456934bec78391fc220846dc63fb3fbe9.tar.gz llvm-30bebff456934bec78391fc220846dc63fb3fbe9.tar.bz2 |
Add a quick pass to optimize sign / zero extension instructions. For targets where the pre-extension values are available in the subreg of the result of the extension, replace the uses of the pre-extension value with the result + extract_subreg.
For now, this pass is fairly conservative. It only perform the replacement when both the pre- and post- extension values are used in the block. It will miss cases where the post-extension values are live, but not used.
llvm-svn: 93278
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions