[Issue 8091] Optimizer generates wrong code when reducing comparisons.

2012-05-17 Thread d-bugmail
/8a689e26e1ba6565d76b05d045674967e83aef60 fix Issue 8091 - Optimizer generates wrong code when reducing comparisons -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 8091] Optimizer generates wrong code when reducing comparisons.

2012-05-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8091 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8091] Optimizer generates wrong code when reducing comparisons.

2012-05-17 Thread d-bugmail
/40f81b41931eea6768b38b44802e35cd4f32f419 fix Issue 8091 - Optimizer generates wrong code when reducing comparisons -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---

[Issue 8091] Optimizer generates wrong code when reducing comparisons.

2012-05-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8091 --- Comment #2 from Don clugd...@yahoo.com.au 2012-05-16 12:17:27 PDT --- Marginally reduced (this is what the early optimizer passes turn this into): int solve(int n) { int a = n ? (n=1u) : 1; return a ? a : 0; } void main() {

[Issue 8091] Optimizer generates wrong code when reducing comparisons.

2012-05-15 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8091 Don clugd...@yahoo.com.au changed: What|Removed |Added CC||clugd...@yahoo.com.au

[Issue 8091] Optimizer generates wrong code when reducing comparisons.

2012-05-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8091 --- Comment #1 from Kasumi Hanazuki k.hanaz...@gmail.com 2012-05-12 23:58:16 PDT --- more simplification: int solve(int n) { int a = (n == 0) ? 1 : (n == 1) ? 1 : 0; return (a != 0) ? a : 0; } void main() { assert(solve(0)