mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-19 17:24:57 +00:00
Fix build break introduced in r231992
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231996 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -57,7 +57,6 @@ public:
|
|||||||
: SelectionDAGISel(targetmachine, OptLevel), TM(targetmachine) {
|
: SelectionDAGISel(targetmachine, OptLevel), TM(targetmachine) {
|
||||||
initializeHexagonDAGToDAGISelPass(*PassRegistry::getPassRegistry());
|
initializeHexagonDAGToDAGISelPass(*PassRegistry::getPassRegistry());
|
||||||
}
|
}
|
||||||
bool hasNumUsesBelowThresGA(SDNode *N) const;
|
|
||||||
|
|
||||||
SDNode *Select(SDNode *N) override;
|
SDNode *Select(SDNode *N) override;
|
||||||
|
|
||||||
@@ -1455,8 +1454,7 @@ bool HexagonDAGToDAGISel::foldGlobalAddressImpl(SDValue &N, SDValue &R,
|
|||||||
|
|
||||||
if (Const && GA &&
|
if (Const && GA &&
|
||||||
(GA->getOpcode() == ISD::TargetGlobalAddress)) {
|
(GA->getOpcode() == ISD::TargetGlobalAddress)) {
|
||||||
if ((N0.getOpcode() == HexagonISD::CONST32) &&
|
if (N0.getOpcode() == HexagonISD::CONST32)
|
||||||
!hasNumUsesBelowThresGA(GA))
|
|
||||||
return false;
|
return false;
|
||||||
R = CurDAG->getTargetGlobalAddress(GA->getGlobal(),
|
R = CurDAG->getTargetGlobalAddress(GA->getGlobal(),
|
||||||
SDLoc(Const),
|
SDLoc(Const),
|
||||||
|
Reference in New Issue
Block a user