aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2022-09-19 18:14:34 +0100
committerFlorian Hahn <flo@fhahn.com>2022-09-19 18:14:35 +0100
commit582f8ef19fe791e66c0bbe090edebfd74ba2b55d (patch)
tree6b5c5947a4f5ac663e4543973870707e3396f024 /llvm/lib/Support/Compression.cpp
parente6f8a6b56e27b86b0563d3c6d547c2b14f0a1ced (diff)
downloadllvm-582f8ef19fe791e66c0bbe090edebfd74ba2b55d.zip
llvm-582f8ef19fe791e66c0bbe090edebfd74ba2b55d.tar.gz
llvm-582f8ef19fe791e66c0bbe090edebfd74ba2b55d.tar.bz2
[LV] Keep track of cost-based ScalarAfterVec in VPWidenPointerInd.
Epilogue vectorization uses isScalarAfterVectorization to check if widened versions for inductions need to be generated and bails out in those cases. At the moment, there are scenarios where isScalarAfterVectorization returns true but VPWidenPointerInduction::onlyScalarsGenerated would return false, causing widening. This can lead to widened phis with incorrect start values being created in the epilogue vector body. This patch addresses the issue by storing the cost-model decision in VPWidenPointerInductionRecipe and restoring the behavior before 151c144. This effectively reverts 151c144, but the long-term fix is to properly support widened inductions during epilogue vectorization Fixes #57712.
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
0 files changed, 0 insertions, 0 deletions