[Issue 5688] Poor optimization of (long & 1)

2018-05-22 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5688 Dmitry Olshansky changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 5688] Poor optimization of (long 1)

2015-06-09 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5688 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --

[Issue 5688] Poor optimization of (long 1)

2011-03-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5688 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

[Issue 5688] Poor optimization of (long 1)

2011-03-03 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5688 --- Comment #2 from Don clugd...@yahoo.com.au 2011-03-03 17:52:46 PST --- (In reply to comment #1) Interestingly, if the code is written as: bool foo(long v) { return (v 1) == 1; } the code generated is: mov