remove assert that hit with fast-math if user defined their own functions named rcp()
This commit is contained in:
1
expr.cpp
1
expr.cpp
@@ -2157,7 +2157,6 @@ BinaryExpr::Optimize() {
|
||||
std::vector<Symbol *> rcpFuns;
|
||||
m->symbolTable->LookupFunction("rcp", &rcpFuns);
|
||||
if (rcpFuns.size() > 0) {
|
||||
AssertPos(pos, rcpFuns.size() == 2);
|
||||
Expr *rcpSymExpr = new FunctionSymbolExpr("rcp", rcpFuns, pos);
|
||||
ExprList *args = new ExprList(arg1, arg1->pos);
|
||||
Expr *rcpCall = new FunctionCallExpr(rcpSymExpr, args,
|
||||
|
||||
Reference in New Issue
Block a user