Also suppress uniques in cmm dumps with `-dsuppress-uniques`.
ClosedPublic

Authored by AndreasK on Mon, Jun 4, 11:34 AM.

Details

Summary

Allows easier structural comparison of Cmm code.

Before:

cxCH: // global
    _suEU::P64 = R1;
    if ((Sp + -16) < SpLim) (likely: False) goto cxCI; else goto cxCJ;

After

_lbl_: // global
    __locVar_::P64 = R1;
    if ((Sp + -16) < SpLim) (likely: False) goto cxBf; else goto cxBg;
Test Plan

Looking at dumps, ci

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
AndreasK created this revision.Mon, Jun 4, 11:34 AM
AndreasK edited the summary of this revision. (Show Details)Mon, Jun 4, 11:39 AM
bgamari accepted this revision.Mon, Jun 4, 12:24 PM

Sure, looks good to me.

This revision is now accepted and ready to land.Mon, Jun 4, 12:24 PM
This revision was automatically updated to reflect the committed changes.