forked from OSchip/llvm-project
parent
47c8e7a0e7
commit
325297c101
|
@ -57,7 +57,6 @@ public:
|
|||
: SelectionDAGISel(targetmachine, OptLevel), TM(targetmachine) {
|
||||
initializeHexagonDAGToDAGISelPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
bool hasNumUsesBelowThresGA(SDNode *N) const;
|
||||
|
||||
SDNode *Select(SDNode *N) override;
|
||||
|
||||
|
@ -1455,8 +1454,7 @@ bool HexagonDAGToDAGISel::foldGlobalAddressImpl(SDValue &N, SDValue &R,
|
|||
|
||||
if (Const && GA &&
|
||||
(GA->getOpcode() == ISD::TargetGlobalAddress)) {
|
||||
if ((N0.getOpcode() == HexagonISD::CONST32) &&
|
||||
!hasNumUsesBelowThresGA(GA))
|
||||
if (N0.getOpcode() == HexagonISD::CONST32)
|
||||
return false;
|
||||
R = CurDAG->getTargetGlobalAddress(GA->getGlobal(),
|
||||
SDLoc(Const),
|
||||
|
|
Loading…
Reference in New Issue