[llvm] [SystemZ] Mark RELOC_NONE as not having size for SystemZ (PR #167027)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 7 14:15:23 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-systemz
Author: Daniel Thornburgh (mysterymath)
<details>
<summary>Changes</summary>
This fixes forward an issue in PR #<!-- -->147427.
---
Full diff: https://github.com/llvm/llvm-project/pull/167027.diff
1 Files Affected:
- (modified) llvm/lib/Target/SystemZ/SystemZLongBranch.cpp (+1)
``````````diff
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 ||
``````````
</details>
https://github.com/llvm/llvm-project/pull/167027
More information about the llvm-commits
mailing list