[llvm] [VPlan] Passing non-null instruction when creating VPReductionRecipe in unit test. NFC (PR #120053)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 00:42:15 PST 2024


ElvisWang123 wrote:

I think we need to pass non-null underlying instruction when creating VPReductionRecipe in current implementation. 
Otherwise the `getUnderlyingInstr()`  which is used in `print()` and `clone()` will crash. 

We can add another constructor for VPReductionRecipe without underlying instruction in the future.


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


More information about the llvm-commits mailing list