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 | 358a9027a8199db9296e6e991f5ae513953a30f0 (patch) | |
tree | c7dce5581ebe0a19be20fbda2e69fa9469264f54 /lib/Bytecode | |
parent | 8cce7cd0aebda3f286b322d8c4dc034bb2ee129c (diff) |
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!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
0 files changed, 0 insertions, 0 deletions