[llvm] [LLVM][VPlan] Pick more optimal initial value for VPBlend. (PR #104019)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 16:31:39 PDT 2024


================
@@ -996,6 +1006,7 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
                          m_LogicalAnd(m_VPValue(X1), m_Not(m_VPValue(Y1))))) &&
       X == X1 && Y == Y1) {
     R.getVPSingleValue()->replaceAllUsesWith(X);
+    R.eraseFromParent();
----------------
ayalz wrote:

Is this related to this patch or independent?
There are multiple RAUW's here, w/o such erasure, is this one special?

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


More information about the llvm-commits mailing list