diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index d3844f469e0..e70eb97871a 100644 --- a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp +++ b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp @@ -856,7 +856,8 @@ SDNode *PPCDAGToDAGISel::Select(SDOperand Op) { } SDOperand Offset = LD->getOffset(); - if (isa(Offset)) { + if (isa(Offset) || + Offset.getOpcode() == ISD::TargetGlobalAddress) { SDOperand Chain = LD->getChain(); SDOperand Base = LD->getBasePtr(); AddToISelQueue(Chain);