Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
llvm-doe
llvm-project
Commits
39819ccd
Commit
39819ccd
authored
Jun 24, 2020
by
Guillaume Chatelet
Browse files
Use concrete natural type alignment for masked load/store operations instead of 0.
parent
10045cbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
llvm/include/llvm/CodeGen/BasicTTIImpl.h
View file @
39819ccd
...
...
@@ -1388,11 +1388,12 @@ public:
case
Intrinsic
::
sideeffect
:
return
0
;
case
Intrinsic
::
masked_store
:
return
ConcreteTTI
->
getMaskedMemoryOpCost
(
Instruction
::
Store
,
Tys
[
0
],
0
,
return
ConcreteTTI
->
getMaskedMemoryOpCost
(
Instruction
::
Store
,
Tys
[
0
],
DL
.
getABITypeAlignment
(
Tys
[
0
]),
0
,
CostKind
);
case
Intrinsic
::
masked_load
:
return
ConcreteTTI
->
getMaskedMemoryOpCost
(
Instruction
::
Load
,
RetTy
,
0
,
0
,
CostKind
);
return
ConcreteTTI
->
getMaskedMemoryOpCost
(
Instruction
::
Load
,
RetTy
,
DL
.
getABITypeAlignment
(
RetTy
),
0
,
CostKind
);
case
Intrinsic
::
experimental_vector_reduce_add
:
return
ConcreteTTI
->
getArithmeticReductionCost
(
Instruction
::
Add
,
VecOpTy
,
/*IsPairwiseForm=*/
false
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment