Completely rewrite how getelementptr instructions are expanded. This has two
authorChris Lattner <sabre@nondot.org>
Sun, 22 Feb 2004 07:04:00 +0000 (07:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 22 Feb 2004 07:04:00 +0000 (07:04 +0000)
commit3f1e8e7cebd852c1765f4a3e5ec92b484d1c4fe1
tree886bb2139be2a6c930e29639460d9a08697a5b0b
parentf216421181393fd3993b47960de44ad448710fb9
Completely rewrite how getelementptr instructions are expanded.  This has two
(minor) benefits right now:

1. An extra dummy MOVrr32 is gone.  This move would often be coallesced by
   both allocators anyway.
2. The code now uses the gep_type_iterator to walk the gep, which should future
   proof it a bit.  It still assumes that array indexes are Longs though.

These don't really justify rewriting the code.  The big benefit will come later
though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11710 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp