Skip to content

Commit c4cfcba

Browse files
committed
another case
1 parent 4c10bc5 commit c4cfcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/passes/OptimizeInstructions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,7 +1413,7 @@ struct OptimizeInstructions
14131413
curr->op = Abstract::getBinary(type, Abstract::Add);
14141414
right->value = right->value.neg();
14151415
return curr;
1416-
} else {
1416+
} else if (fastMath) {
14171417
// x - 0.0 ==> x
14181418
return curr->left;
14191419
}

0 commit comments

Comments
 (0)