[llvm] [VectorCombine] Fix crash in scalarizeVPIntrinsic (PR #72039)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Sat Nov 11 14:44:20 PST 2023


================
@@ -843,6 +843,8 @@ bool VectorCombine::scalarizeVPIntrinsic(Instruction &I) {
 
   Value *ScalarOp0 = getSplatValue(Op0);
   Value *ScalarOp1 = getSplatValue(Op1);
+  if (!ScalarOp0 || !ScalarOp1)
----------------
michaelmaitland wrote:

Sure. Do you know why getSplatValue fails to get the splat even though isSplatValue returns true? That sounds like a bug to me?

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


More information about the llvm-commits mailing list