forked from OSchip/llvm-project
parent
279c196d84
commit
c0955a57df
|
@ -1162,8 +1162,7 @@ llvm::canConstantFoldCallTo(const Function *F) {
|
||||||
switch (Name[0]) {
|
switch (Name[0]) {
|
||||||
default: return false;
|
default: return false;
|
||||||
case 'a':
|
case 'a':
|
||||||
return Name == "acos" || Name == "asin" ||
|
return Name == "acos" || Name == "asin" || Name == "atan" || Name =="atan2";
|
||||||
Name == "atan" || Name == "atan2";
|
|
||||||
case 'c':
|
case 'c':
|
||||||
return Name == "cos" || Name == "ceil" || Name == "cosf" || Name == "cosh";
|
return Name == "cos" || Name == "ceil" || Name == "cosf" || Name == "cosh";
|
||||||
case 'e':
|
case 'e':
|
||||||
|
|
Loading…
Reference in New Issue