summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
diff options
context:
space:
mode:
authorArtur Pilipenko <apilipenko@azulsystems.com>2016-01-17 12:59:40 +0000
committerArtur Pilipenko <apilipenko@azulsystems.com>2016-01-17 12:59:40 +0000
commitaba8fdc480fd2301ef1014de5790abe62eb429ae (patch)
tree6d9a52e6538e6b83c5c54366a61d385984dcf4b9 /llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp
parentf84dc06e5b4ba4f96fb6ef24b2df848c512f41d6 (diff)
downloadbcm5719-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/Scalar/ScalarReplAggregates.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp4
1 files changed, 0 insertions, 4 deletions
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
OpenPOWER on IntegriCloud