lib/Target/X86/InstSelectSimple.cpp: Start counting arguments with 2,
authorBrian Gaeke <gaeke@uiuc.edu>
Fri, 13 Dec 2002 09:28:50 +0000 (09:28 +0000)
committerBrian Gaeke <gaeke@uiuc.edu>
Fri, 13 Dec 2002 09:28:50 +0000 (09:28 +0000)
commited6902ca8991b895025a9a11ddeb200e7b5ae6ae
tree7075a93d01972f93bf9cf01c7575db84c32fc7aa
parent95780cccef3f6630a912aba9e2241819d7a00ba4
lib/Target/X86/InstSelectSimple.cpp: Start counting arguments with 2,
 because arguments start two stack slots off of EBP. Break out of the
 for loop once the argument is found. Increment the counter at the end
 of the loop instead of the beginning. Use addRegOffset and compute
 the scale * index part at compile time instead of using the fancy
 load instruction. Just because an instruction set has wacky addressing
 modes doesn't mean we ought to use them (at least, if you believe Dave
 Patterson).

lib/Target/X86/X86InstrBuilder.h: Add some comments.

test/Regression/Jello/test-loadstore.ll:  Let main return int 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4999 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp
lib/Target/X86/X86InstrBuilder.h
test/ExecutionEngine/test-loadstore.ll