projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[optnone] Skip pass Float2Int on optnone functions.
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
Float2Int.cpp
diff --git
a/lib/Transforms/Scalar/Float2Int.cpp
b/lib/Transforms/Scalar/Float2Int.cpp
index 3d7457ea5dc90aa17f32351b55fc96e29c59358d..33bc86030397f9400882caf11b49c1a5ac6f80c3 100644
(file)
--- a/
lib/Transforms/Scalar/Float2Int.cpp
+++ b/
lib/Transforms/Scalar/Float2Int.cpp
@@
-511,6
+511,9
@@
void Float2Int::cleanup() {
}
bool Float2Int::runOnFunction(Function &F) {
+ if (skipOptnoneFunction(F))
+ return false;
+
DEBUG(dbgs() << "F2I: Looking at function " << F.getName() << "\n");
// Clear out all state.
ECs = EquivalenceClasses<Instruction*>();