aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-03 17:10:41 +0000
committerDan Gohman <gohman@apple.com>2008-12-03 17:10:41 +0000
commitf033b5a393c1f0af68a2e93ef73bf0a3d788ae6e (patch)
tree833f2ebf9f86dd86418a827cff8709a8c7912c79 /lib/Target/ARM
parent8b8e5a7f9648bc7e39dc28607c5ade43aaafb3af (diff)
downloadexternal_llvm-f033b5a393c1f0af68a2e93ef73bf0a3d788ae6e.zip
external_llvm-f033b5a393c1f0af68a2e93ef73bf0a3d788ae6e.tar.gz
external_llvm-f033b5a393c1f0af68a2e93ef73bf0a3d788ae6e.tar.bz2
Update a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60484 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r--lib/Target/ARM/ARMISelDAGToDAG.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp
index b281f84..ac3abe6 100644
--- a/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/lib/Target/ARM/ARMISelDAGToDAG.cpp
@@ -380,9 +380,10 @@ bool ARMDAGToDAGISel::SelectThumbAddrModeRR(SDValue Op, SDValue N,
SDValue &Base, SDValue &Offset){
if (N.getOpcode() != ISD::ADD) {
Base = N;
- // We must materialize a zero in a reg! Returning an constant here won't
- // work since its node is -1 so it won't get added to the selection queue.
- // Explicitly issue a tMOVri8 node!
+ // We must materialize a zero in a reg! Returning a constant here
+ // wouldn't work without additional code to position the node within
+ // ISel's topological ordering in a place where ISel will process it
+ // normally. Instead, just explicitly issue a tMOVri8 node!
Offset = SDValue(CurDAG->getTargetNode(ARM::tMOVi8, MVT::i32,
CurDAG->getTargetConstant(0, MVT::i32)), 0);
return true;