summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2018-11-14 13:21:26 +0000
committerFlorian Hahn <florian.hahn@arm.com>2018-11-14 13:21:26 +0000
commit2eca3728ee3efe72eea0f74469cc2adf0515a4ce (patch)
tree13b1d044e91d564703951d88ee54229729369cbe /llvm/lib/Transforms
parent09e516c54b0c5ec3fe6b3ef6c70d9e09e89abc95 (diff)
downloadbcm5719-llvm-2eca3728ee3efe72eea0f74469cc2adf0515a4ce.tar.gz
bcm5719-llvm-2eca3728ee3efe72eea0f74469cc2adf0515a4ce.zip
[VPlan] Update ifdef.
llvm-svn: 346858
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/VPlanSLP.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlanSLP.cpp b/llvm/lib/Transforms/Vectorize/VPlanSLP.cpp
index 679fb51e48d..5c6466215e6 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanSLP.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanSLP.cpp
@@ -362,14 +362,14 @@ VPInstruction *VPlanSlp::buildGraph(ArrayRef<VPValue *> Values) {
// If we already visited this instruction bundle, re-use the existing node
auto I = BundleToCombined.find(to_vector<4>(Values));
if (I != BundleToCombined.end()) {
-#ifdef NDEBUG
+#ifndef NDEBUG
// Check that the resulting graph is a tree. If we re-use a node, this means
// its values have multiple users. We only allow this, if all users of each
// value are the same instruction.
for (auto *V : Values) {
auto UI = V->user_begin();
auto *FirstUser = *UI++;
- while (UI != V->use_end()) {
+ while (UI != V->user_end()) {
assert(*UI == FirstUser && "Currently we only support SLP trees.");
UI++;
}
OpenPOWER on IntegriCloud