diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-01-11 06:55:24 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-01-11 06:55:24 +0000 |
| commit | 9518869423bcb97673d8f34ab818d3d441c55951 (patch) | |
| tree | 3d22bf13e5546736263be3189835e3ef888ab49e /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | cbbf85543283e66935edaee86a7d9e929a8bd0b2 (diff) | |
add one more bitfield optimization, allowing clang to generate
good code on PR4216:
_test_bitfield: ## @test_bitfield
orl $32962, %edi
movl $4294941946, %eax
andq %rdi, %rax
ret
instead of:
_test_bitfield:
movl $4294941696, %ecx
movl %edi, %eax
orl $194, %edi
orl $32768, %eax
andq $250, %rdi
andq %rax, %rcx
movq %rdi, %rax
orq %rcx, %rax
ret
Evan is looking into the remaining andq+imm -> andl optimization.
llvm-svn: 93147
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
