[llvm] [VPlan] Add transformation to narrow interleave groups. (PR #106441)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 13:41:58 PDT 2024


================
@@ -48,6 +48,9 @@ extern cl::opt<unsigned> ForceTargetInstructionCost;
 
 bool VPRecipeBase::mayWriteToMemory() const {
   switch (getVPDefID()) {
+  case VPInstructionSC: {
+    return !Instruction::isBinaryOp(cast<VPInstruction>(this)->getOpcode());
+  }
----------------
alexey-bataev wrote:

What about cast or select or other instructions here? Is this still correct for them?

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


More information about the llvm-commits mailing list