[llvm-commits] [llvm] r171447 - /llvm/trunk/include/llvm/TargetTransformInfo.h

Hal Finkel hfinkel at anl.gov
Wed Jan 2 17:50:51 PST 2013


Author: hfinkel
Date: Wed Jan  2 19:50:51 2013
New Revision: 171447

URL: http://llvm.org/viewvc/llvm-project?rev=171447&view=rev
Log:
Add a default Index for VTTI::getShuffleCost

When Kind == (Broadcast or Reverse) then Index is not used; make it an optional parameter.

No functionality change.

Modified:
    llvm/trunk/include/llvm/TargetTransformInfo.h

Modified: llvm/trunk/include/llvm/TargetTransformInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/TargetTransformInfo.h?rev=171447&r1=171446&r2=171447&view=diff
==============================================================================
--- llvm/trunk/include/llvm/TargetTransformInfo.h (original)
+++ llvm/trunk/include/llvm/TargetTransformInfo.h Wed Jan  2 19:50:51 2013
@@ -173,7 +173,7 @@
   /// The index parameter is used by some of the shuffle kinds to add
   /// additional information.
   virtual unsigned getShuffleCost(ShuffleKind Kind, Type *Tp,
-                                  int Index) const {
+                                  int Index = 0) const {
     return 1;
   }
 





More information about the llvm-commits mailing list