[llvm] [VPlan] First step towards VPlan cost modeling (LegacyCM in CostCtx) (PR #92555)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 03:51:04 PDT 2024


================
@@ -1373,8 +1401,6 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags {
         ResultTy(ResultTy) {
     assert(UI.getOpcode() == Opcode &&
            "opcode of underlying cast doesn't match");
-    assert(UI.getType() == ResultTy &&
-           "result type of underlying cast doesn't match");
----------------
fhahn wrote:

Unfortunately this is still needed even with  setUnderlyingvalue being used, due to cloning the recipe.

https://github.com/llvm/llvm-project/pull/92555


More information about the llvm-commits mailing list