diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-01 02:42:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-01 02:42:43 +0000 |
commit | 1f4642c47cd341e1536bebfae109eb7e88b06a5e (patch) | |
tree | 582e2e09a6a06810d90fbc52fe64531d40d4ab68 /llvm/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.cpp | |
parent | b19dcc6651e1ffa985f7a3aaedbea25291864b08 (diff) | |
download | bcm5719-llvm-1f4642c47cd341e1536bebfae109eb7e88b06a5e.tar.gz bcm5719-llvm-1f4642c47cd341e1536bebfae109eb7e88b06a5e.zip |
Handle passing constant integers to functions much more efficiently. Instead
of generating this code:
mov %EAX, 4
mov DWORD PTR [%ESP], %EAX
mov %AX, 123
movsx %EAX, %AX
mov DWORD PTR [%ESP + 4], %EAX
call Y
we now generate:
mov DWORD PTR [%ESP], 4
mov DWORD PTR [%ESP + 4], 123
call Y
Which hurts the eyes less. :)
Considering that register pressure around call sites is already high (with all
of the callee clobber registers n stuff), this may help a lot.
llvm-svn: 12028
Diffstat (limited to 'llvm/lib/CodeGen/ModuloScheduling/ModuloSchedGraph.cpp')
0 files changed, 0 insertions, 0 deletions