Closed Bug 678798 Opened 11 years ago Closed 11 years ago
Monkey: GVN constant folding folds a^a + 1 to 0
Attached test case returns undefined, and should spin forever (while(1);) on ionmonkey tip x86 debug builds with GVN enabled.
The issue is that folding creates a new node, without a value number. So, we decide that the constants are equal. Patch forthcoming.
Status: NEW → ASSIGNED
With Bug 669793 fixed, we can take advantage of the values map not being cleared at the end of every pass, and use that to give a number to newly generated nodes.
Assignee: general → rpearl
Attachment #554267 - Flags: review?(adrake)
Attachment #554267 - Flags: review?(adrake) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.