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
{{ message }}
Repository navigation
cmd/compile: possible issue in optimization of -(c+-x) #31888
I don't understand the constraint c != -(1<<31): Why it is necessary at all, and if it is necessary, why it isn't say -(1<<63). If it does need to be -(1<<63), then we may be generating bad code. As such, tentatively marking Go 1.13.
Activity
randall77 commentedon May 7, 2019
ADDQconston x86 requires thatcbe anint32.That's why the restriction is there, so that we don't generate an
ADDQconstof1<<31(which is invalid) from anADDQconstof-1<<31(which is valid).josharian commentedon May 7, 2019
Ah! Thanks.
gopherbot commentedon May 7, 2019
Change https://golang.org/cl/175778 mentions this issue:
cmd/compile: add more Neg/Com optimizationscmd/compile: add more Neg/Com optimizations
cmd/compile: add more Neg/Com optimizations
cmd/compile: add more Neg/Com optimizations