You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
saving one instruction and 2 bytes on those x86 architectures where three-operand LEAs are not discouraged.
I thought the x86 backend might be intentionally avoiding the three-operand LEA for -march=znver3, but that doesn't seem to be the case. For return X < 10 ? 9 : 12, I get:
Uh oh!
There was an error while loading. Please reload this page.
Compile:
I get:
We could generate:
saving one instruction and 2 bytes on those x86 architectures where three-operand LEAs are not discouraged.
I thought the x86 backend might be intentionally avoiding the three-operand LEA for
-march=znver3
, but that doesn't seem to be the case. Forreturn X < 10 ? 9 : 12
, I get:Even on those x86 architectures where three-operand LEAs are discouraged, this optimization might be useful for size optimization purposes.
The text was updated successfully, but these errors were encountered: