forked from OSchip/llvm-project
[Hexagon] Handle -O4 when checking optimization level
llvm-svn: 301364
This commit is contained in:
parent
df58e825ad
commit
d6d4127fcb
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue