GEP index sinking fixes:
authorEvan Cheng <evan.cheng@apple.com>
Wed, 28 Mar 2007 01:49:39 +0000 (01:49 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Wed, 28 Mar 2007 01:49:39 +0000 (01:49 +0000)
commitbaeccc8741958c0d27f1ba1d162468f615b565ac
tree8d1aad2fdb17f3972a1202a6d29a08f38e350d08
parent9495a0c2327da241ebd31aca8594860f4793c599
GEP index sinking fixes:
1) Take address scale into consideration. e.g. i32* -> scale 4.
2) Examine all the users of GEP.
3) Generalize to inter-block GEP's (no longer uses loopinfo).
4) Don't do xform if GEP has other variable index(es).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35403 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp