diff options
author | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2015-03-25 12:22:37 +0000 |
---|---|---|
committer | Andrea Di Biagio <Andrea_DiBiagio@sn.scee.net> | 2015-03-25 12:22:37 +0000 |
commit | 460948c9ab8b46841a4b364f43ad83274fd2b711 (patch) | |
tree | ebc536c54e086ad2b64f954b2c9835f4d5e4a438 /llvm/lib/Transforms/Scalar/Float2Int.cpp | |
parent | 9528bbaae0e2a54a948cf913100e323b81da6947 (diff) | |
download | bcm5719-llvm-460948c9ab8b46841a4b364f43ad83274fd2b711.tar.gz bcm5719-llvm-460948c9ab8b46841a4b364f43ad83274fd2b711.zip |
[optnone] Skip pass Float2Int on optnone functions.
Added test Float2Int/float2int-optnone.ll to verify that pass Float2Int
is not run on optnone functions.
llvm-svn: 233183
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Float2Int.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/Float2Int.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/Float2Int.cpp b/llvm/lib/Transforms/Scalar/Float2Int.cpp index 3d7457ea5dc..33bc8603039 100644 --- a/llvm/lib/Transforms/Scalar/Float2Int.cpp +++ b/llvm/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*>(); |