diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-01-08 23:08:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-01-08 23:08:06 +0000 |
| commit | 51b01bf8a5dd655b047ffc4a9b431daf4e1a60d4 (patch) | |
| tree | 7fc2d5c110badc8eae94740bb18821f0cf2c2b7a /clang/CodeGen/CodeGenModule.cpp | |
| parent | 965a8961c7f7f62b043f601e793ff3c0b20e31bc (diff) | |
| download | bcm5719-llvm-51b01bf8a5dd655b047ffc4a9b431daf4e1a60d4.tar.gz bcm5719-llvm-51b01bf8a5dd655b047ffc4a9b431daf4e1a60d4.zip | |
Make load->store deletion a bit smarter. This allows us to compile this:
void test(long long *P) { *P ^= 1; }
into just:
_test:
movl 4(%esp), %eax
xorl $1, (%eax)
ret
instead of code like this:
_test:
movl 4(%esp), %ecx
xorl $1, (%ecx)
movl 4(%ecx), %edx
movl %edx, 4(%ecx)
ret
llvm-svn: 45762
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions

