summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZMachineScheduler.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-09-07 11:21:41 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-09-07 11:21:41 +0000
commit20e25d0be204a896c3eee91b1643097043e6b5d1 (patch)
tree7a9d398f9c79b1fc360ce39c013e282de902e3ae /lib/Target/SystemZ/SystemZMachineScheduler.cpp
parent1ac1019db8e01f50b831a8db925b91fd69a5f6ea (diff)
Diffstat (limited to 'lib/Target/SystemZ/SystemZMachineScheduler.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZMachineScheduler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/SystemZ/SystemZMachineScheduler.cpp b/lib/Target/SystemZ/SystemZMachineScheduler.cpp
index 0becfaa1d49c..eb9745f71b7d 100644
--- a/lib/Target/SystemZ/SystemZMachineScheduler.cpp
+++ b/lib/Target/SystemZ/SystemZMachineScheduler.cpp
@@ -108,8 +108,8 @@ void SystemZPostRASchedStrategy::enterMBB(MachineBasicBlock *NextMBB) {
I != SinglePredMBB->end(); I++) {
LLVM_DEBUG(dbgs() << "** Emitting incoming branch: "; I->dump(););
bool TakenBranch = (I->isBranch() &&
- (TII->getBranchInfo(*I).Target->isReg() || // Relative branch
- TII->getBranchInfo(*I).Target->getMBB() == MBB));
+ (TII->getBranchInfo(*I).isIndirect() ||
+ TII->getBranchInfo(*I).getMBBTarget() == MBB));
HazardRec->emitInstruction(&*I, TakenBranch);
if (TakenBranch)
break;