[DAGCombiner] DAG combine does not know how to combine indexed loads with
authorQuentin Colombet <qcolombet@apple.com>
Wed, 9 Apr 2014 20:03:05 +0000 (20:03 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Wed, 9 Apr 2014 20:03:05 +0000 (20:03 +0000)
commite4b14ebcbd93443119efb3b7ef1b90c0e1cbcc3c
tree67c5164a305bce55093eb788c88d3ac4bd1756b9
parent5fa20923c5405db10f497136addcee039c43c06c
[DAGCombiner] DAG combine does not know how to combine indexed loads with
sign/zero/any extensions. However a few places were not checking properly the
property of the load and were turning an indexed load into a regular extended
load. Therefore the indexed value was lost during the process and this was
triggering an assertion.

<rdar://problem/16389332>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205923 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/ARM64/dagcombiner-indexed-load.ll [new file with mode: 0644]