summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-01-03 01:50:51 +0000
committerHal Finkel <hfinkel@anl.gov>2013-01-03 01:50:51 +0000
commit467fa3ea7fc87cef33b603fc3699b888f513aded (patch)
tree23e3c0efaa22677e0b4b07174a22d31b1566f10d /include
parent12b01e7b311375e017d7cbea9d797dc8261973de (diff)
downloadllvm-467fa3ea7fc87cef33b603fc3699b888f513aded.tar.gz
llvm-467fa3ea7fc87cef33b603fc3699b888f513aded.tar.bz2
llvm-467fa3ea7fc87cef33b603fc3699b888f513aded.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/TargetTransformInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/TargetTransformInfo.h b/include/llvm/TargetTransformInfo.h
index a446c7b971..6336afcffe 100644
--- a/include/llvm/TargetTransformInfo.h
+++ b/include/llvm/TargetTransformInfo.h
@@ -173,7 +173,7 @@ public:
/// 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;
}