aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorSergei Barannikov <barannikov88@gmail.com>2024-08-02 16:45:50 +0300
committerGitHub <noreply@github.com>2024-08-02 16:45:50 +0300
commit4e93b16f3fce467b2bbda4e5fd8b15fcad2bea93 (patch)
tree46c7b720851f0b8a0bdd04f0244c45510b648e6c /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent4a98f5228170224144da473c25188e23540c55d6 (diff)
downloadllvm-4e93b16f3fce467b2bbda4e5fd8b15fcad2bea93.zip
llvm-4e93b16f3fce467b2bbda4e5fd8b15fcad2bea93.tar.gz
llvm-4e93b16f3fce467b2bbda4e5fd8b15fcad2bea93.tar.bz2
[llvm] Make InstSimplifyFolder constructor explicit (NFC) (#101654)
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUtils.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 0abf6d7..f1f2d52 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -1901,8 +1901,7 @@ Value *llvm::addRuntimeChecks(
expandBounds(PointerChecks, TheLoop, Loc, Exp, HoistRuntimeChecks);
LLVMContext &Ctx = Loc->getContext();
- IRBuilder<InstSimplifyFolder> ChkBuilder(Ctx,
- Loc->getDataLayout());
+ IRBuilder ChkBuilder(Ctx, InstSimplifyFolder(Loc->getDataLayout()));
ChkBuilder.SetInsertPoint(Loc);
// Our instructions might fold to a constant.
Value *MemoryRuntimeCheck = nullptr;
@@ -1955,8 +1954,7 @@ Value *llvm::addDiffRuntimeChecks(
function_ref<Value *(IRBuilderBase &, unsigned)> GetVF, unsigned IC) {
LLVMContext &Ctx = Loc->getContext();
- IRBuilder<InstSimplifyFolder> ChkBuilder(Ctx,
- Loc->getDataLayout());
+ IRBuilder ChkBuilder(Ctx, InstSimplifyFolder(Loc->getDataLayout()));
ChkBuilder.SetInsertPoint(Loc);
// Our instructions might fold to a constant.
Value *MemoryRuntimeCheck = nullptr;