[PATCH] D145896: [Metarenamer] Distinguish phis and other instructions
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 13 01:12:18 PDT 2023
nikic 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");
}
----------------
What do you think about using `I.getOpcodeName()` in general here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145896/new/
https://reviews.llvm.org/D145896
More information about the llvm-commits
mailing list