[llvm] [SLP][NFC] Remove useless code of deleting ExtractElementInst (PR #106697)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 30 09:50:15 PDT 2024
alexey-bataev wrote:
You mean as an operand with a single use? Yes, missed this when added removeInstructionsAndOperands. But there is another point behind this code. It allows to sync the cost and the codegen. It allows better track what extractelements can be removed after vectorization and if it is safe to remove their cost out of the vector code cost. There are 2 adjustExtracts - one for cost and one for vectorization. This code allows more carefully track the cost of the removed extractelements.
https://github.com/llvm/llvm-project/pull/106697
More information about the llvm-commits
mailing list