[optnone] Skip pass Float2Int on optnone functions.
[oota-llvm.git] / lib / Transforms / Scalar / Float2Int.cpp
index 3d7457ea5dc90aa17f32351b55fc96e29c59358d..33bc86030397f9400882caf11b49c1a5ac6f80c3 100644 (file)
@@ -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*>();