[PATCH] D125533: Revert "[LoopVectorize] Simplify scalar cost calculation in getInstructionCost."
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 16 04:59:12 PDT 2022
david-arm added a comment.
Hi @fhahn, I think I remember when doing this patch these asserts were put in to deal with reviewer requests, but in my original patch I didn't have any asserts at all. I worry that reverting the patch doesn't solve the underlying problem, which is that the cost calculations are sometimes incorrect and difficult to follow. As a compromise could we just remove the assert, but keep the simpler (and easier to understand) logic? This patch has been in the codebase for over a year now without problems - personally it feels more appropriate to fix the assert rather than revert. What do you think?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125533/new/
https://reviews.llvm.org/D125533
More information about the llvm-commits
mailing list