The vectoriser queries TTI->preferPredicateOverEpilogue to determine whether tail-folding is preferred for a loop, but it was not respecting loop hint 'predicate' that can disable this, which has now been added. This showed that we were incorrectly initialising loop hint 'vectorize.predicate.enable' with 0 (i.e. FK_Disabled) but this should have been FK_Undefined, which has been fixed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for reviewing!
I now see that I would have to follow up on this to in addition also respect the option when that disables predication. But I will do that separately, one functional change at a time, since this essentially is a bug fix for the incorrectly initialised loop hint.