[llvm] 4e3608b - [RISCV][TTI] Fix indentation and remove tabs [nfc]

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 09:29:19 PDT 2023


Author: Philip Reames
Date: 2023-03-15T09:29:03-07:00
New Revision: 4e3608bf29c23c0120307d1753384f144c829d2d

URL: https://github.com/llvm/llvm-project/commit/4e3608bf29c23c0120307d1753384f144c829d2d
DIFF: https://github.com/llvm/llvm-project/commit/4e3608bf29c23c0120307d1753384f144c829d2d.diff

LOG: [RISCV][TTI] Fix indentation and remove tabs [nfc]

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index 2bb26b8cfcc3c..23bc4b7aed5bc 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -266,17 +266,17 @@ InstructionCost RISCVTTIImpl::getShuffleCost(TTI::ShuffleKind Kind,
         if (EltTp.getScalarSizeInBits() < ST->getELEN()) {
           auto InterleaveMask = createInterleaveMask(Mask.size() / 2, 2);
           // Example sequence:
-          //   vsetivli		zero, 4, e8, mf4, ta, ma (ignored)
-          //   vwaddu.vv	v10, v8, v9
-          //   li		a0, -1                   (ignored)
-          //   vwmaccu.vx	v10, a0, v9
-	  if (ShuffleVectorInst::isInterleaveMask(Mask, 2, Mask.size() * 2))
-	    return 2 * LT.first * getLMULCost(LT.second);
+          //   vsetivli     zero, 4, e8, mf4, ta, ma (ignored)
+          //   vwaddu.vv    v10, v8, v9
+          //   li       a0, -1                   (ignored)
+          //   vwmaccu.vx   v10, a0, v9
+          if (ShuffleVectorInst::isInterleaveMask(Mask, 2, Mask.size() * 2))
+            return 2 * LT.first * getLMULCost(LT.second);
 
           if (Mask[0] == 0 || Mask[0] == 1) {
             auto DeinterleaveMask = createStrideMask(Mask[0], 2, Mask.size());
             // Example sequence:
-            //   vnsrl.wi	v10, v8, 0
+            //   vnsrl.wi   v10, v8, 0
             if (equal(DeinterleaveMask, Mask))
               return LT.first * getLMULCost(LT.second);
           }


        


More information about the llvm-commits mailing list