diff options
| author | Artur Pilipenko <apilipenko@azulsystems.com> | 2016-01-17 12:59:40 +0000 |
|---|---|---|
| committer | Artur Pilipenko <apilipenko@azulsystems.com> | 2016-01-17 12:59:40 +0000 |
| commit | aba8fdc480fd2301ef1014de5790abe62eb429ae (patch) | |
| tree | 6d9a52e6538e6b83c5c54366a61d385984dcf4b9 /llvm/lib/Transforms | |
| parent | f84dc06e5b4ba4f96fb6ef24b2df848c512f41d6 (diff) | |
| download | bcm5719-llvm-aba8fdc480fd2301ef1014de5790abe62eb429ae.tar.gz bcm5719-llvm-aba8fdc480fd2301ef1014de5790abe62eb429ae.zip | |
Fix buildbot failure introduced by 258010. Remove local variables became unused.
llvm-svn: 258011
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SROA.cpp | 3 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 4 |
2 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index dbbc1758b9f..cee913d243e 100644 --- a/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/llvm/lib/Transforms/Scalar/SROA.cpp @@ -1169,8 +1169,6 @@ static bool isSafePHIToSpeculate(PHINode &PN) { if (!HaveLoad) return false; - const DataLayout &DL = PN.getModule()->getDataLayout(); - // We can only 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 trapping load in the predecessor if it is a critical edge. @@ -1260,7 +1258,6 @@ static void speculatePHINodeLoads(PHINode &PN) { static bool isSafeSelectToSpeculate(SelectInst &SI) { Value *TValue = SI.getTrueValue(); Value *FValue = SI.getFalseValue(); - const DataLayout &DL = SI.getModule()->getDataLayout(); for (User *U : SI.users()) { LoadInst *LI = dyn_cast<LoadInst>(U); 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<LoadInst>(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 |

