[llvm] a1a8d10 - [Transforms] Use default member initialization in LibCallSimplifier (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 6 16:36:48 PST 2022
Author: Kazu Hirata
Date: 2022-02-06T16:36:27-08:00
New Revision: a1a8d10a1728079edf830cebd3ffce953277f3eb
URL: https://github.com/llvm/llvm-project/commit/a1a8d10a1728079edf830cebd3ffce953277f3eb
DIFF: https://github.com/llvm/llvm-project/commit/a1a8d10a1728079edf830cebd3ffce953277f3eb.diff
LOG: [Transforms] Use default member initialization in LibCallSimplifier (NFC)
Added:
Modified:
llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h b/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
index a88e72fc9ba8..25115031980c 100644
--- a/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
+++ b/llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
@@ -105,7 +105,7 @@ class LibCallSimplifier {
OptimizationRemarkEmitter &ORE;
BlockFrequencyInfo *BFI;
ProfileSummaryInfo *PSI;
- bool UnsafeFPShrink;
+ bool UnsafeFPShrink = false;
function_ref<void(Instruction *, Value *)> Replacer;
function_ref<void(Instruction *)> Eraser;
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index e02d02a05752..857dba97f5d7 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -3170,7 +3170,7 @@ LibCallSimplifier::LibCallSimplifier(
function_ref<void(Instruction *, Value *)> Replacer,
function_ref<void(Instruction *)> Eraser)
: FortifiedSimplifier(TLI), DL(DL), TLI(TLI), ORE(ORE), BFI(BFI), PSI(PSI),
- UnsafeFPShrink(false), Replacer(Replacer), Eraser(Eraser) {}
+ Replacer(Replacer), Eraser(Eraser) {}
void LibCallSimplifier::replaceAllUsesWith(Instruction *I, Value *With) {
// Indirect through the replacer used in this instance.
More information about the llvm-commits
mailing list