OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12b01e7
)
Add a default Index for VTTI::getShuffleCost
author
Hal Finkel
<hfinkel@anl.gov>
Thu, 3 Jan 2013 01:50:51 +0000
(
01:50
+0000)
committer
Hal Finkel
<hfinkel@anl.gov>
Thu, 3 Jan 2013 01:50:51 +0000
(
01:50
+0000)
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
include/llvm/TargetTransformInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/TargetTransformInfo.h
b/include/llvm/TargetTransformInfo.h
index
a446c7b
..
6336afc
100644
(file)
--- 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;
}