[llvm] 5073499 - [TypePromotionPass] Rename variable to avoid name conflict. NFC
David Green via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 2 04:35:24 PDT 2022
Author: David Green
Date: 2022-09-02T12:35:15+01:00
New Revision: 5073499b693d29195a707683bab6e0ebf97320eb
URL: https://github.com/llvm/llvm-project/commit/5073499b693d29195a707683bab6e0ebf97320eb
DIFF: https://github.com/llvm/llvm-project/commit/5073499b693d29195a707683bab6e0ebf97320eb.diff
LOG: [TypePromotionPass] Rename variable to avoid name conflict. NFC
Added:
Modified:
llvm/lib/CodeGen/TypePromotion.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/TypePromotion.cpp b/llvm/lib/CodeGen/TypePromotion.cpp
index 5ed2674fe6533..058a18036dcf6 100644
--- a/llvm/lib/CodeGen/TypePromotion.cpp
+++ b/llvm/lib/CodeGen/TypePromotion.cpp
@@ -857,18 +857,18 @@ bool TypePromotion::TryToPromote(Value *V, unsigned PromotedWidth) {
unsigned ToPromote = 0;
unsigned NonFreeArgs = 0;
SmallPtrSet<BasicBlock *, 4> Blocks;
- for (auto *V : CurrentVisited) {
- if (auto *I = dyn_cast<Instruction>(V))
+ for (auto *CV : CurrentVisited) {
+ if (auto *I = dyn_cast<Instruction>(CV))
Blocks.insert(I->getParent());
- if (Sources.count(V)) {
- if (auto *Arg = dyn_cast<Argument>(V))
+ if (Sources.count(CV)) {
+ if (auto *Arg = dyn_cast<Argument>(CV))
if (!Arg->hasZExtAttr() && !Arg->hasSExtAttr())
++NonFreeArgs;
continue;
}
- if (Sinks.count(cast<Instruction>(V)))
+ if (Sinks.count(cast<Instruction>(CV)))
continue;
++ToPromote;
}
More information about the llvm-commits
mailing list