Open
Bug 774075
Opened 12 years ago
Updated 2 years ago
IonMonkey: eliminate redundant lower bound checks
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
NEW
People
(Reporter: evilpie, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [ion:t])
Attachments
(1 file)
8.72 KB,
patch
|
Details | Diff | Splinter Review |
For code like this we currently emit three lower bound checks. var n = 0; for (var i = 0; i < (a.length - 4); i++) { n = a[i] + a[i + 1] + a[i + 2]; } We should just more or less duplicate ion::EliminateRedundantBoundsChecks for MBoundsCheckLower.
Reporter | ||
Comment 1•12 years ago
|
||
Pretty straight forward, just duplicated to the logic for MBoundsCheck in EliminateRedundantBoundsChecks the pass and adopted it for MBoundsCheckLower.
Assignee: general → evilpies
Status: NEW → ASSIGNED
Updated•12 years ago
|
Reporter | ||
Comment 2•12 years ago
|
||
I think Brian changed a lot of this stuff recently. Is this useful?
Comment 3•12 years ago
|
||
Hmm, I think this could be used to eliminate checks, but MBoundsCheckLower will only be introduced when we were able to hoist a check from the loop and thus the eliminated checks will always be in loop preheaders rather than the loop body.
Reporter | ||
Updated•12 years ago
|
Status: ASSIGNED → NEW
Assignee | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•