[Webkit-unassigned] [Bug 154207] Load + Register Extend should be simplified into Load

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Feb 27 16:26:37 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154207

--- Comment #1 from Filip Pizlo <fpizlo at apple.com> ---
(In reply to comment #0)
> This:
> @1 = Load(@x);
> @2 = SExt8(@1)
> 
> should be transformed as:
> @3 = Load8(@x)
> 
> This must be done at B3 level instead of lowering in order to have the
> address go through legalizeMemoryOffsets().

Seems like we "just" need use counts to do this, so we prove that the Load is not used for anything else.  reduceStrength() could almost do it, but it would be dangerous, since that phase modifies the IR as it goes - so it will probably mess up any use count calculations.

That implies that we should add a new phase to do this.  This phase should probably also get other things that require use counts.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160228/e7cda255/attachment.html>


More information about the webkit-unassigned mailing list