[llvm-branch-commits] [llvm] [AMDGPU] Early bail in getFunctionCodeSize for meta inst. NFC. (PR #127129)
Matt Arsenault via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Feb 16 22:52:52 PST 2025
================
@@ -216,7 +216,7 @@ uint64_t SIProgramInfo::getFunctionCodeSize(const MachineFunction &MF) {
// TODO: CodeSize should account for multiple functions.
// TODO: Should we count size of debug info?
- if (MI.isDebugInstr())
+ if (MI.isDebugInstr() || MI.isMetaInstruction())
----------------
arsenm wrote:
You can remove the isDebugInstr check, the debug pseudos are also marked isMetaInstruction
https://github.com/llvm/llvm-project/pull/127129
More information about the llvm-branch-commits
mailing list