diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Transforms/Scalar/LowerWidenableCondition.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Transforms/Scalar/LowerWidenableCondition.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/contrib/llvm-project/llvm/lib/Transforms/Scalar/LowerWidenableCondition.cpp b/contrib/llvm-project/llvm/lib/Transforms/Scalar/LowerWidenableCondition.cpp index e2de322933bc..3c977b816a05 100644 --- a/contrib/llvm-project/llvm/lib/Transforms/Scalar/LowerWidenableCondition.cpp +++ b/contrib/llvm-project/llvm/lib/Transforms/Scalar/LowerWidenableCondition.cpp @@ -19,24 +19,10 @@ #include "llvm/IR/Intrinsics.h" #include "llvm/IR/Module.h" #include "llvm/IR/PatternMatch.h" -#include "llvm/InitializePasses.h" -#include "llvm/Pass.h" #include "llvm/Transforms/Scalar.h" using namespace llvm; -namespace { -struct LowerWidenableConditionLegacyPass : public FunctionPass { - static char ID; - LowerWidenableConditionLegacyPass() : FunctionPass(ID) { - initializeLowerWidenableConditionLegacyPassPass( - *PassRegistry::getPassRegistry()); - } - - bool runOnFunction(Function &F) override; -}; -} - static bool lowerWidenableCondition(Function &F) { // Check if we can cheaply rule out the possibility of not having any work to // do. @@ -65,19 +51,6 @@ static bool lowerWidenableCondition(Function &F) { return true; } -bool LowerWidenableConditionLegacyPass::runOnFunction(Function &F) { - return lowerWidenableCondition(F); -} - -char LowerWidenableConditionLegacyPass::ID = 0; -INITIALIZE_PASS(LowerWidenableConditionLegacyPass, "lower-widenable-condition", - "Lower the widenable condition to default true value", false, - false) - -Pass *llvm::createLowerWidenableConditionPass() { - return new LowerWidenableConditionLegacyPass(); -} - PreservedAnalyses LowerWidenableConditionPass::run(Function &F, FunctionAnalysisManager &AM) { if (lowerWidenableCondition(F)) |
