This is an archive of the discontinued LLVM Phabricator instance.

[Reassociate] Remove FIXME from looptest.ll (NFC)
ClosedPublic

Authored by fhahn on Oct 30 2017, 9:42 AM.

Details

Summary

The loop invariant add (i+j) is reassoicated, I think the FIXME can be removed, because this is what the test case tries to check (AFAIK). I also changed the test to use FileCheck.

Diff Detail

Event Timeline

fhahn created this revision.Oct 30 2017, 9:42 AM

Chad, could you have a quick look, as it looks like you added the FIXME.

davide accepted this revision.Oct 30 2017, 9:45 AM
davide added a subscriber: davide.

LGTM

This revision is now accepted and ready to land.Oct 30 2017, 9:45 AM

When was this fixed, out of curiosity?

fhahn added a comment.Oct 30 2017, 9:52 AM

I couldn't find a revision to pin down (I didn't try hard though).

But the previous check also checked for a similar thing, making sure reg115 and reg117 are not on the same line/used in the same instruction. So I am not entirely sure why the FIXME was still there.

Please wait for Chad to comment, but this seems an OK change to me.

mcrosier accepted this revision.Oct 30 2017, 10:26 AM

This probably comes from when I was adding support for FP in the reassociation pass many years ago. I don't recall exactly why I added the FIXME, but the original test was checking that (i+j) gets reassociated, so I agree with Florian's change.

fhahn closed this revision.Oct 31 2017, 7:06 AM