[llvm] 0d3d382 - comment shiftamountthreshold

via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 7 08:41:17 PST 2019


Author: joanlluch
Date: 2019-11-07T17:41:05+01:00
New Revision: 0d3d3822f53b12ad292c3a63eb47cbe3ac59d0cf

URL: https://github.com/llvm/llvm-project/commit/0d3d3822f53b12ad292c3a63eb47cbe3ac59d0cf
DIFF: https://github.com/llvm/llvm-project/commit/0d3d3822f53b12ad292c3a63eb47cbe3ac59d0cf.diff

LOG: comment shiftamountthreshold

Added: 
    

Modified: 
    llvm/lib/Target/MSP430/MSP430ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
index 64169d1f5eb1..1ee5489f1972 100644
--- a/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
+++ b/llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
@@ -353,6 +353,7 @@ SDValue MSP430TargetLowering::LowerOperation(SDValue Op,
   }
 }
 
+// Set transforms into shift amounts above 2 as not profitable
 unsigned MSP430TargetLowering::getShiftAmountThreshold(EVT VT) const {
   return 2;
 }


        


More information about the llvm-commits mailing list