[Hexagon] Handle -O4 when checking optimization level

llvm-svn: 301364
This commit is contained in:
Krzysztof Parzyszek 2017-04-25 21:31:55 +00:00
parent df58e825ad
commit d6d4127fcb
1 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,8 @@ unsigned HexagonToolChain::getOptimizationLevel(
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());