summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit810daf7e93abc5e89ccae19bbdd51470ea306fcf (patch)
tree44f355ce9aca8de607f8ae5eba8087298b1394e7 /llvm
parent9c33e96813da29846f5cac10eef761835c0a88e7 (diff)
downloadbcm5719-llvm-810daf7e93abc5e89ccae19bbdd51470ea306fcf.tar.gz
bcm5719-llvm-810daf7e93abc5e89ccae19bbdd51470ea306fcf.zip
Update a comment.
llvm-svn: 60484
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp b/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
index b281f84cb72..ac3abe670a4 100644
--- a/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud