aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/Scalarizer.cpp
diff options
context:
space:
mode:
authorMatt Wala <wala@google.com>2015-06-13 01:08:00 +0000
committerMatt Wala <wala@google.com>2015-06-13 01:08:00 +0000
commitbfb5368cc7504728b73374e5c204dd957a652325 (patch)
tree4d364f495baadc3a12f204f84aef2dc9fa768b9c /llvm/lib/Transforms/Scalar/Scalarizer.cpp
parent8aba6a6db4835fbb9f3d789edff3f92b44eb3850 (diff)
downloadllvm-bfb5368cc7504728b73374e5c204dd957a652325.zip
llvm-bfb5368cc7504728b73374e5c204dd957a652325.tar.gz
llvm-bfb5368cc7504728b73374e5c204dd957a652325.tar.bz2
Revert 239644.
llvm-svn: 239650
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Scalarizer.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/Scalarizer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/Scalarizer.cpp b/llvm/lib/Transforms/Scalar/Scalarizer.cpp
index 7144fd3..d55dc6a 100644
--- a/llvm/lib/Transforms/Scalar/Scalarizer.cpp
+++ b/llvm/lib/Transforms/Scalar/Scalarizer.cpp
@@ -636,9 +636,7 @@ bool Scalarizer::visitStoreInst(StoreInst &SI) {
// Delete the instructions that we scalarized. If a full vector result
// is still needed, recreate it using InsertElements.
bool Scalarizer::finish() {
- // The presence of data in Gathered or Scattered indicates changes
- // made to the Function.
- if (Gathered.empty() && Scattered.empty())
+ if (Gathered.empty())
return false;
for (GatherList::iterator GMI = Gathered.begin(), GME = Gathered.end();
GMI != GME; ++GMI) {