diff options
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-09-05 10:20:05 +0000 |
---|---|---|
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2019-09-05 10:20:05 +0000 |
commit | 821858780ec096d59e181757d57cdf17d150706a (patch) | |
tree | 67f39c4be605a9150907dc90dca2f6e20b8b9393 /llvm/lib/Target/SystemZ/SystemZMachineScheduler.cpp | |
parent | 67991a59cb5ebc846c480daeb469c00cd6117275 (diff) | |
download | bcm5719-llvm-821858780ec096d59e181757d57cdf17d150706a.tar.gz bcm5719-llvm-821858780ec096d59e181757d57cdf17d150706a.zip |
[SystemZ] Recognize INLINEASM_BR in backend
Handle the remaining cases also by handling asm goto in
SystemZInstrInfo::getBranchInfo().
Review: Ulrich Weigand
https://reviews.llvm.org/D67151
llvm-svn: 371048
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZMachineScheduler.cpp')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZMachineScheduler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZMachineScheduler.cpp b/llvm/lib/Target/SystemZ/SystemZMachineScheduler.cpp index 0becfaa1d49..eb9745f71b7 100644 --- a/llvm/lib/Target/SystemZ/SystemZMachineScheduler.cpp +++ b/llvm/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; |