mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
Fix build break introduced in r231992
llvm-svn: 231996
This commit is contained in:
parent
997aab28ac
commit
445e825bfd
@ -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,9 +1454,8 @@ 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),
|
||||||
N.getValueType(),
|
N.getValueType(),
|
||||||
|
Loading…
Reference in New Issue
Block a user