[llvm] [VPlan] Extract reverse operation for reverse accesses (PR #146525)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 24 05:09:14 PDT 2025


================
@@ -1520,11 +1526,10 @@ RISCVTTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
   }
 
   if (ST->hasVInstructions() && RetTy->isVectorTy()) {
-    if (auto LT = getTypeLegalizationCost(RetTy);
-        LT.second.isVector()) {
+    if (auto LT = getTypeLegalizationCost(RetTy); LT.second.isVector()) {
       MVT EltTy = LT.second.getVectorElementType();
-      if (const auto *Entry = CostTableLookup(VectorIntrinsicCostTable,
-                                              ICA.getID(), EltTy))
+      if (const auto *Entry =
+              CostTableLookup(VectorIntrinsicCostTable, ICA.getID(), EltTy))
----------------
alexey-bataev wrote:

Restore original formatting here

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


More information about the llvm-commits mailing list