[PATCH] D138757: [zero-call-used-regs] Mark only non-debug instruction's register as used
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 27 17:18:42 PST 2022
dblaikie added a comment.
Could you add a test case?
================
Comment at: llvm/lib/CodeGen/PrologEpilogInserter.cpp:1237-1239
+ if (MI.isDebugInstr())
+ continue;
+
----------------
probably makes sense to put this outside the `MI.operands()` loop, so the loop isn't even run for debug instnructions
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138757/new/
https://reviews.llvm.org/D138757
More information about the llvm-commits
mailing list