llvm-project
5889bcbc - [Polly][DeLICM] Disable partial PHI writes in Polly vectorize mode (#244604)

Commit
2 days ago
[Polly][DeLICM] Disable partial PHI writes in Polly vectorize mode (#244604) In Polly vectorize mode Polly hands loops to the LoopVectorizer. DeLICM may map a loop-carried PHI to an array element that moves with the loop (e.g. x -> off[i+1]). The last iteration's value has no element, so the PHI write becomes partial and is emitted as a conditional store that the next iteration reloads. The LoopVectorizer rejects this as an unsafe backward dependence, and LoopLoadElimination cannot forward it because the store does not dominate the latch. Loops that vectorize without Polly are then left scalar. Disable partial PHI writes in Polly vectorize mode. An explicit -polly-delicm-partial-writes still takes precedence. Default behavior is unchanged.
Author
Parents
Loading