From 8452a3f46e1636321765e2022b14b789f2b99ec4 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Fri, 14 Aug 2015 06:30:26 +0000 Subject: [PATCH] [LVer] Remove unused Pass parameter from versionLoop, NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245032 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/Utils/LoopVersioning.h | 2 +- lib/Transforms/Scalar/LoopDistribute.cpp | 2 +- lib/Transforms/Utils/LoopVersioning.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/Transforms/Utils/LoopVersioning.h b/include/llvm/Transforms/Utils/LoopVersioning.h index 4779b7ede2b..8c87a62d84c 100644 --- a/include/llvm/Transforms/Utils/LoopVersioning.h +++ b/include/llvm/Transforms/Utils/LoopVersioning.h @@ -55,7 +55,7 @@ public: /// analyze L /// if versioning is necessary version L /// transform L - void versionLoop(Pass *P); + void versionLoop(); /// \brief Adds the necessary PHI nodes for the versioned loops based on the /// loop-defined values used outside of the loop. diff --git a/lib/Transforms/Scalar/LoopDistribute.cpp b/lib/Transforms/Scalar/LoopDistribute.cpp index ffcfd8bad90..6c211458100 100644 --- a/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/lib/Transforms/Scalar/LoopDistribute.cpp @@ -794,7 +794,7 @@ private: DEBUG(dbgs() << "\nPointers:\n"); DEBUG(LAI.getRuntimePointerChecking()->printChecks(dbgs(), Checks)); LoopVersioning LVer(std::move(Checks), LAI, L, LI, DT); - LVer.versionLoop(this); + LVer.versionLoop(); LVer.addPHINodes(DefsUsedOutside); } diff --git a/lib/Transforms/Utils/LoopVersioning.cpp b/lib/Transforms/Utils/LoopVersioning.cpp index ad2de241b40..11f11adbc5e 100644 --- a/lib/Transforms/Utils/LoopVersioning.cpp +++ b/lib/Transforms/Utils/LoopVersioning.cpp @@ -40,7 +40,7 @@ LoopVersioning::LoopVersioning(const LoopAccessInfo &LAInfo, Loop *L, assert(L->getLoopPreheader() && "No preheader"); } -void LoopVersioning::versionLoop(Pass *P) { +void LoopVersioning::versionLoop() { Instruction *FirstCheckInst; Instruction *MemRuntimeCheck; // Add the memcheck in the original preheader (this is empty initially). -- 2.34.1