summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-12-15 23:52:36 +0000
committerJim Grosbach <grosbach@apple.com>2010-12-15 23:52:36 +0000
commitbfef309d11f186f459e64d99767f07d70da5fb4c (patch)
tree730fd310941fca067f88cccf2a834f98e3972a7b /llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
parent347f4c32e81ec09997dbc5b52c5c061cda33aba5 (diff)
downloadbcm5719-llvm-bfef309d11f186f459e64d99767f07d70da5fb4c.tar.gz
bcm5719-llvm-bfef309d11f186f459e64d99767f07d70da5fb4c.zip
Thumb1 had two patterns for the same load-from-constant-pool instruction.
Canonicalize on tLDRpci and remove tLDRcp. llvm-svn: 121920
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index 3e4d72bec14..991814ed114 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -2187,7 +2187,7 @@ SDNode *ARMDAGToDAGISel::Select(SDNode *N) {
SDValue Pred = getAL(CurDAG);
SDValue PredReg = CurDAG->getRegister(0, MVT::i32);
SDValue Ops[] = { CPIdx, Pred, PredReg, CurDAG->getEntryNode() };
- ResNode = CurDAG->getMachineNode(ARM::tLDRcp, dl, MVT::i32, MVT::Other,
+ ResNode = CurDAG->getMachineNode(ARM::tLDRpci, dl, MVT::i32, MVT::Other,
Ops, 4);
} else {
SDValue Ops[] = {
OpenPOWER on IntegriCloud