Skip to content

Commit d5bc1f4

Browse files
committed
[SandboxVec][NFC] Rename a variable
1 parent 3cfc733 commit d5bc1f4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

llvm/lib/Transforms/Vectorize/SandboxVectorizer/SandboxVectorizer.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,24 @@ PreservedAnalyses SandboxVectorizerPass::run(Function &F,
2828
return PA;
2929
}
3030

31-
bool SandboxVectorizerPass::runImpl(Function &F) {
31+
bool SandboxVectorizerPass::runImpl(Function &LLVMF) {
3232
// If the target claims to have no vector registers early return.
3333
if (!TTI->getNumberOfRegisters(TTI->getRegisterClassForType(true))) {
3434
LLVM_DEBUG(dbgs() << "SBVec: Target has no vector registers, return.\n");
3535
return false;
3636
}
37-
LLVM_DEBUG(dbgs() << "SBVec: Analyzing " << F.getName() << ".\n");
37+
LLVM_DEBUG(dbgs() << "SBVec: Analyzing " << LLVMF.getName() << ".\n");
3838
// Early return if the attribute NoImplicitFloat is used.
39-
if (F.hasFnAttribute(Attribute::NoImplicitFloat)) {
39+
if (LLVMF.hasFnAttribute(Attribute::NoImplicitFloat)) {
4040
LLVM_DEBUG(dbgs() << "SBVec: NoImplicitFloat attribute, return.\n");
4141
return false;
4242
}
4343

44-
sandboxir::Context Ctx(F.getContext());
45-
// Create SandboxIR for `F`.
46-
sandboxir::Function &SBF = *Ctx.createFunction(&F);
44+
sandboxir::Context Ctx(LLVMF.getContext());
45+
// Create SandboxIR for `LLVMF`.
46+
sandboxir::Function &F = *Ctx.createFunction(&LLVMF);
4747
// TODO: Initialize SBVec Pass Manager
48-
(void)SBF;
48+
(void)F;
4949

5050
return false;
5151
}

0 commit comments

Comments
 (0)