r301364 - [Hexagon] Handle -O4 when checking optimization level
Krzysztof Parzyszek via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 25 14:31:56 PDT 2017
Author: kparzysz
Date: Tue Apr 25 16:31:55 2017
New Revision: 301364
URL: http://llvm.org/viewvc/llvm-project?rev=301364&view=rev
Log:
[Hexagon] Handle -O4 when checking optimization level
Modified:
cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp
Modified: cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp?rev=301364&r1=301363&r2=301364&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains/Hexagon.cpp Tue Apr 25 16:31:55 2017
@@ -411,7 +411,8 @@ unsigned HexagonToolChain::getOptimizati
if (A->getOption().matches(options::OPT_O0))
return 0;
- if (A->getOption().matches(options::OPT_Ofast))
+ if (A->getOption().matches(options::OPT_Ofast) ||
+ A->getOption().matches(options::OPT_O4))
return 3;
assert(A->getNumValues() != 0);
StringRef S(A->getValue());
More information about the cfe-commits
mailing list