File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6424,9 +6424,9 @@ private bool canHappenAfter(elem* a, elem* b)
64246424/* **************************************************
64256425 * See if we want conversion of (e = -e) to OPnegass
64266426 * Params:
6427- * tym = the type of e in (e = -e)
6427+ * tym = the type of e in (e = -e)
64286428 * Returns:
6429- * true if convert to OPnegass
6429+ * true if convert to OPnegass
64306430 */
64316431@trusted private
64326432bool useOPnegass (tym_t tym)
Original file line number Diff line number Diff line change @@ -1243,7 +1243,7 @@ elem* el_convfloat(ref GlobalOptimizer go, elem* e)
12431243private @trusted
12441244elem* el_convreal (ref GlobalOptimizer go, elem* e)
12451245{
1246- // printf("el_convfloat ()\n"); elem_print(e);
1246+ // printf("el_convreal ()\n"); elem_print(e);
12471247 ubyte [32 ] buffer = void ;
12481248
12491249 tym_t ty = e.Ety;
@@ -1487,7 +1487,8 @@ elem* el_convert(ref GlobalOptimizer go, elem* e)
14871487 * in this case, we preserve the constant 2.
14881488 */
14891489 if (tyreal(e.Ety) && // don't bother with imaginary or complex
1490- e.E2 .Eoper == OPconst && el_toldoubled(e.E2 ) == 2.0L )
1490+ e.E2 .Eoper == OPconst && el_toldoubled(e.E2 ) == 2.0L &&
1491+ ! go.AArch64) // doesn't do the *2 optimization
14911492 {
14921493 e.E1 = el_convert(go, e.E1 );
14931494 /* Don't call el_convert(e.E2), we want it to stay as a constant
You can’t perform that action at this time.
0 commit comments