This is an archive of the discontinued LLVM Phabricator instance.

[unroll] Fix a functional change in an NFC patch
ClosedPublic

Authored by dsanders on Dec 1 2021, 11:19 AM.

Details

Summary

5c77aa2b917c [unroll] Use early return in shouldFullUnroll [nfc]
wasn't quite NFC since !(x <= y) is x > y rather than x >= y

Credit to Justin Bogner for spotting the bug

Diff Detail

Event Timeline

dsanders created this revision.Dec 1 2021, 11:19 AM
dsanders requested review of this revision.Dec 1 2021, 11:19 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 1 2021, 11:19 AM
fhahn added a subscriber: fhahn.Dec 1 2021, 12:09 PM

Do you have a test case by any chance that would show the functional change?

reames accepted this revision.Dec 1 2021, 12:21 PM

oops, thanks. LGTM.

This revision is now accepted and ready to land.Dec 1 2021, 12:21 PM

Do you have a test case by any chance that would show the functional change?

Unfortunately no. We didn't try to make a reproducer, we just have some CI compiling some internal test apps that's very strict about changes to the metrics it's tracking. Once we'd bisected the report to 5c77aa2b917c we found that the 'binary is different' flag was being set for some of the tests even though the commit said NFC

oops, thanks. LGTM.

No problem, thanks

This revision was automatically updated to reflect the committed changes.