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
/
IPO
/
LoopExtractor.cpp
diff --git
a/lib/Transforms/IPO/LoopExtractor.cpp
b/lib/Transforms/IPO/LoopExtractor.cpp
index 714e0786f6de2a4e70847a7bc72de7c0ee89b8d3..f6dda62fa438796cf0f6c188880bcbfb6b3d1219 100644
(file)
--- a/
lib/Transforms/IPO/LoopExtractor.cpp
+++ b/
lib/Transforms/IPO/LoopExtractor.cpp
@@
-79,6
+79,9
@@
INITIALIZE_PASS(SingleLoopExtractor, "loop-extract-single",
Pass *llvm::createLoopExtractorPass() { return new LoopExtractor(); }
bool LoopExtractor::runOnLoop(Loop *L, LPPassManager &LPM) {
+ if (skipOptnoneFunction(L))
+ return false;
+
// Only visit top-level loops.
if (L->getParentLoop())
return false;