[llvm] [VPlan] Introduce VPlan-level constant folder (PR #125365)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon May 19 14:14:00 PDT 2025
    
    
  
================
@@ -938,10 +939,87 @@ static void recursivelyDeleteDeadRecipes(VPValue *V) {
   }
 }
 
+/// Try to fold \p R using TargetFolder to a constant. Will succeed for a
+/// handled \p Opcode if all \p Operands are constant.
----------------
fhahn wrote:
```suggestion
/// Try to fold \p R using TargetFolder to a constant. Will succeed and return true if \p Opcode is supported and all \p Operands are constant.
```
https://github.com/llvm/llvm-project/pull/125365
    
    
More information about the llvm-commits
mailing list