[llvm] 397701f - [SystemZ] Mark RELOC_NONE as not having size for SystemZ (#167027)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 7 14:47:04 PST 2025


Author: Daniel Thornburgh
Date: 2025-11-07T22:46:59Z
New Revision: 397701f3a0a05f8569f923b283bc66b124795b4a

URL: https://github.com/llvm/llvm-project/commit/397701f3a0a05f8569f923b283bc66b124795b4a
DIFF: https://github.com/llvm/llvm-project/commit/397701f3a0a05f8569f923b283bc66b124795b4a.diff

LOG: [SystemZ] Mark RELOC_NONE as not having size for SystemZ (#167027)

This fixes forward an issue in PR #147427.

Added: 
    

Modified: 
    llvm/lib/Target/SystemZ/SystemZLongBranch.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp b/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp
index 21a233b2ffa1d..b7a93e7babefe 100644
--- a/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp
+++ b/llvm/lib/Target/SystemZ/SystemZLongBranch.cpp
@@ -216,6 +216,7 @@ static unsigned getInstSizeInBytes(const MachineInstr &MI,
           MI.isDebugOrPseudoInstr() || MI.isPosition() || MI.isKill() ||
           MI.isImplicitDef() || MI.getOpcode() == TargetOpcode::MEMBARRIER ||
           MI.getOpcode() == TargetOpcode::INIT_UNDEF || MI.isFakeUse() ||
+          MI.getOpcode() == TargetOpcode::RELOC_NONE ||
           // These have a size that may be zero:
           MI.isInlineAsm() || MI.getOpcode() == SystemZ::STACKMAP ||
           MI.getOpcode() == SystemZ::PATCHPOINT ||


        


More information about the llvm-commits mailing list