ARM: don't use a deleted node as the BaseReg in complex pattern.
authorTim Northover <tnorthover@apple.com>
Wed, 9 Dec 2015 15:54:50 +0000 (15:54 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 9 Dec 2015 15:54:50 +0000 (15:54 +0000)
commit6d8e50b6e2c07d1502dc899dd1741af14111b480
treea3c61de56c334a647a3d347ed3850f6522442acb
parentfecb71a6a4db2198fa71a02de10e3f8762e7348e
ARM: don't use a deleted node as the BaseReg in complex pattern.

We mutated the DAG, which invalidated the node we were trying to use
as a base register. Sometimes we got away with it, but other times the
node really did get deleted before it was finished with.

Should fix PR25733

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255120 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMISelDAGToDAG.cpp
test/CodeGen/ARM/shifter_operand.ll