projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Disable most IR-level transform passes on functions marked 'optnone'.
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
SROA.cpp
diff --git
a/lib/Transforms/Scalar/SROA.cpp
b/lib/Transforms/Scalar/SROA.cpp
index 08a9bc09267180efe950aedc9ebca5a0cf735821..bed53b832a9c65891f5c390a3c7f4f2fa1e9838f 100644
(file)
--- a/
lib/Transforms/Scalar/SROA.cpp
+++ b/
lib/Transforms/Scalar/SROA.cpp
@@
-3572,6
+3572,9
@@
namespace {
}
bool SROA::runOnFunction(Function &F) {
+ if (skipOptnoneFunction(F))
+ return false;
+
DEBUG(dbgs() << "SROA function: " << F.getName() << "\n");
C = &F.getContext();
DL = getAnalysisIfAvailable<DataLayout>();