[llvm] 06006f4 - [LFTR] Minor style cleanup [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 21 19:18:17 PDT 2023
Author: Philip Reames
Date: 2023-03-21T19:17:31-07:00
New Revision: 06006f438e1b9168a859b8d7d5273f0170330ebd
URL: https://github.com/llvm/llvm-project/commit/06006f438e1b9168a859b8d7d5273f0170330ebd
DIFF: https://github.com/llvm/llvm-project/commit/06006f438e1b9168a859b8d7d5273f0170330ebd.diff
LOG: [LFTR] Minor style cleanup [nfc]
Added:
Modified:
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index 0725bd3b7e01..43f3beb4b34b 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -961,9 +961,8 @@ static Value *genLoopLimit(PHINode *IndVar, BasicBlock *ExitingBB,
// Ensure that we generate the same type as IndVar, or a smaller integer
// type. In the presence of null pointer values, we have an integer type
// SCEV expression (IVInit) for a pointer type IV value (IndVar).
- Type *LimitTy = ExitCount->getType();
- BranchInst *BI = cast<BranchInst>(ExitingBB->getTerminator());
- return Rewriter.expandCodeFor(IVLimit, LimitTy, BI);
+ return Rewriter.expandCodeFor(IVLimit, ExitCount->getType(),
+ ExitingBB->getTerminator());
}
}
More information about the llvm-commits
mailing list