From aba8fdc480fd2301ef1014de5790abe62eb429ae Mon Sep 17 00:00:00 2001 From: Artur Pilipenko Date: Sun, 17 Jan 2016 12:59:40 +0000 Subject: Fix buildbot failure introduced by 258010. Remove local variables became unused. llvm-svn: 258011 --- llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp') diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index c89c763138f..774538eaa81 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -1140,8 +1140,6 @@ public: /// We can do this to a select if its only uses are loads and if the operand to /// the select can be loaded unconditionally. static bool isSafeSelectToSpeculate(SelectInst *SI) { - const DataLayout &DL = SI->getModule()->getDataLayout(); - for (User *U : SI->users()) { LoadInst *LI = dyn_cast(U); if (!LI || !LI->isSimple()) return false; @@ -1199,8 +1197,6 @@ static bool isSafePHIToSpeculate(PHINode *PN) { MaxAlign = std::max(MaxAlign, LI->getAlignment()); } - const DataLayout &DL = PN->getModule()->getDataLayout(); - // Okay, we know that we have one or more loads in the same block as the PHI. // We can transform this if it is safe to push the loads into the predecessor // blocks. The only thing to watch out for is that we can't put a possibly -- cgit v1.2.3