Fixes #57572
Generally LICM pass is responsible for sinking out code that calculates
invariant address inside loop as it only needed to be calculated once.
But in rare case it does not happen we will not be vectorizing the
loop.
Differential D133687
[LoopVectorize][Fix] Crash when invariant store address is calculated inside loop igor.kirillov on Sep 12 2022, 4:59 AM. Authored by
Details Fixes #57572 Generally LICM pass is responsible for sinking out code that calculates
Diff Detail
Unit Tests
Event TimelineComment Actions LGTM with nits addressed!
Comment Actions You could add something like Fixes #57572 to the description, so the issue will be auto-closed once the fix is pushed.
Comment Actions LGTM with the inline comment addressed, thanks!
Comment Actions Did you add the extra test for the regression in the original version of the patch? It looks like it wasn't included in 2d60d7ba1a26/ |
nit: "check its" -> "check if"