[llvm] [Scalarizer] Fix to only scalarize if intrinsic was marked as isTriviallyScalarizable (PR #113625)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 01:40:00 PDT 2024


================
@@ -1084,6 +1084,17 @@ bool ScalarizerVisitor::visitExtractValueInst(ExtractValueInst &EVI) {
   ValueVector Res;
   if (!isStructOfMatchingFixedVectors(OpTy))
     return false;
+  if (CallInst *CI = dyn_cast<CallInst>(Op)) {
----------------
jayfoad wrote:

Can you just handle `IntrinsicInst` here, instead of manually checking for a known callee and looking up the id?

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


More information about the llvm-commits mailing list