projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-commit r255115, with the PredicatedScalarEvolution class moved to
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
LoopLoadElimination.cpp
diff --git
a/lib/Transforms/Scalar/LoopLoadElimination.cpp
b/lib/Transforms/Scalar/LoopLoadElimination.cpp
index 7c7bf64ba79c81ee7a9e6fc06a80817c78bf2d38..09d022b3013b59d9bdefccb805e2606359d1250d 100644
(file)
--- a/
lib/Transforms/Scalar/LoopLoadElimination.cpp
+++ b/
lib/Transforms/Scalar/LoopLoadElimination.cpp
@@
-459,17
+459,18
@@
public:
return false;
}
return false;
}
- if (LAI.Preds.getComplexity() > LoadElimSCEVCheckThreshold) {
+ if (LAI.PSE.getUnionPredicate().getComplexity() >
+ LoadElimSCEVCheckThreshold) {
DEBUG(dbgs() << "Too many SCEV run-time checks needed.\n");
return false;
}
// Point of no-return, start the transformation. First, version the loop if
// necessary.
DEBUG(dbgs() << "Too many SCEV run-time checks needed.\n");
return false;
}
// Point of no-return, start the transformation. First, version the loop if
// necessary.
- if (!Checks.empty() || !LAI.P
reds
.isAlwaysTrue()) {
+ if (!Checks.empty() || !LAI.P
SE.getUnionPredicate()
.isAlwaysTrue()) {
LoopVersioning LV(LAI, L, LI, DT, SE, false);
LV.setAliasChecks(std::move(Checks));
LoopVersioning LV(LAI, L, LI, DT, SE, false);
LV.setAliasChecks(std::move(Checks));
- LV.setSCEVChecks(LAI.P
reds
);
+ LV.setSCEVChecks(LAI.P
SE.getUnionPredicate()
);
LV.versionLoop();
}
LV.versionLoop();
}