llvm.org GIT mirror llvm / 55d4acb
Fix build break introduced in r231992 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231996 91177308-0d34-0410-b5e6-96231b3b80d8 Krzysztof Parzyszek 5 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5656 : SelectionDAGISel(targetmachine, OptLevel), TM(targetmachine) {
5757 initializeHexagonDAGToDAGISelPass(*PassRegistry::getPassRegistry());
5858 }
59 bool hasNumUsesBelowThresGA(SDNode *N) const;
6059
6160 SDNode *Select(SDNode *N) override;
6261
14541453
14551454 if (Const && GA &&
14561455 (GA->getOpcode() == ISD::TargetGlobalAddress)) {
1457 if ((N0.getOpcode() == HexagonISD::CONST32) &&
1458 !hasNumUsesBelowThresGA(GA))
1459 return false;
1456 if (N0.getOpcode() == HexagonISD::CONST32)
1457 return false;
14601458 R = CurDAG->getTargetGlobalAddress(GA->getGlobal(),
14611459 SDLoc(Const),
14621460 N.getValueType(),