[PATCH] D145896: [Metarenamer] Distinguish phis and other instructions
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 14 04:16:46 PDT 2023
mkazantsev added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/MetaRenamer.cpp:119
if (!I.getType()->isVoidTy())
- I.setName("inst");
+ I.setName(isa<PHINode>(I) ? "phi" : "inst");
}
----------------
nikic wrote:
> What do you think about using `I.getOpcodeName()` in general here?
Interesting idea.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145896/new/
https://reviews.llvm.org/D145896
More information about the llvm-commits
mailing list