From 325297c1015c147798626ab58d7b8335b73053f3 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Thu, 12 Mar 2015 00:49:13 +0000 Subject: [PATCH] Fix build break introduced in r231992 llvm-svn: 231996 --- llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp index 05a9caf..b22bdb3 100644 --- a/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp +++ b/llvm/lib/Target/Hexagon/HexagonISelDAGToDAG.cpp @@ -57,7 +57,6 @@ public: : SelectionDAGISel(targetmachine, OptLevel), TM(targetmachine) { initializeHexagonDAGToDAGISelPass(*PassRegistry::getPassRegistry()); } - bool hasNumUsesBelowThresGA(SDNode *N) const; SDNode *Select(SDNode *N) override; @@ -1455,9 +1454,8 @@ bool HexagonDAGToDAGISel::foldGlobalAddressImpl(SDValue &N, SDValue &R, if (Const && GA && (GA->getOpcode() == ISD::TargetGlobalAddress)) { - if ((N0.getOpcode() == HexagonISD::CONST32) && - !hasNumUsesBelowThresGA(GA)) - return false; + if (N0.getOpcode() == HexagonISD::CONST32) + return false; R = CurDAG->getTargetGlobalAddress(GA->getGlobal(), SDLoc(Const), N.getValueType(), -- 2.7.4