diff options
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/SystemZ/SystemZLongBranch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp b/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp index 791f0334e0f..ef8b9806f89 100644 --- a/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp +++ b/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp @@ -312,7 +312,7 @@ uint64_t SystemZLongBranch::initMBBInfo() { // relaxed if it were placed at address Address. bool SystemZLongBranch::mustRelaxBranch(const TerminatorInfo &Terminator, uint64_t Address) { - if (!Terminator.Branch) + if (!Terminator.Branch || Terminator.ExtraRelaxSize == 0) return false; const MBBInfo &Target = MBBs[Terminator.TargetBlock]; |