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

Farzon Lotfi via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 25 04:08:27 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)) {
----------------
farzonl wrote:

Still need to lookup the id, but yes this could be `IntrinsicInst`.

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


More information about the llvm-commits mailing list