Page MenuHomePhabricator

[ARM] Ensure loop invariant active.lane.mask operands

Authored by dmgreen on Thu, Apr 15, 4:35 AM.



CGP can move instructions like a ptrtoint into a loop, but the MVETailPredication when converting them will currently assume invariant trip counts. This tries to ensure the operands are loop invariant, and bails if not.

Diff Detail

Event Timeline

dmgreen created this revision.Thu, Apr 15, 4:35 AM
dmgreen requested review of this revision.Thu, Apr 15, 4:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptThu, Apr 15, 4:35 AM
SjoerdMeijer accepted this revision.Fri, Apr 23, 1:00 AM

Yep, looks like a good fix to me.


Not that I mind too much, but can we not reduce this test case a bit?

This revision is now accepted and ready to land.Fri, Apr 23, 1:00 AM
dmgreen added inline comments.Sun, Apr 25, 1:03 PM

This test I actually want to turn into something better, I have managed to write up some test and put that into D101263.

Otherwise we have to do something about the vectorizer costs, because this is obviously not beneficial. I'm hoping that by optimizing it we can keep the vectorization.

This revision was automatically updated to reflect the committed changes.