diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-15 05:05:29 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-15 05:05:29 +0000 |
commit | 15914416eca93c9485b79919b1227685d0d7fbeb (patch) | |
tree | ef6e2261be8cbbf48831f6b3778cdc79c8ae9574 /llvm/docs/Bugpoint.html | |
parent | 3b78938b9eaa1924ccb4cecf74a2e3d75c343418 (diff) | |
download | bcm5719-llvm-15914416eca93c9485b79919b1227685d0d7fbeb.tar.gz bcm5719-llvm-15914416eca93c9485b79919b1227685d0d7fbeb.zip |
Instruction select globals with offsets better. For example, on this test
case:
int C[100];
int foo() {
return C[4];
}
We now codegen:
foo:
mov %EAX, DWORD PTR [C + 16]
ret
instead of:
foo:
mov %EAX, OFFSET C
mov %EAX, DWORD PTR [%EAX + 16]
ret
Other impressive features may be coming later.
This patch is contributed by Jeff Cohen!
llvm-svn: 17011
Diffstat (limited to 'llvm/docs/Bugpoint.html')
0 files changed, 0 insertions, 0 deletions