Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
4e007632
Unverified
Commit
4e007632
authored
Apr 07, 2020
by
Krzysztof Parzyszek
Committed by
GitHub
Apr 07, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[LLVM] Do not use x86_vcvtph2ps_256 intrinsic with LLVM 11+ (#5267)
This intrinsic was removed in LLVM 11.
parent
2942278a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/target/llvm/codegen_x86_64.cc
+5
-1
No files found.
src/target/llvm/codegen_x86_64.cc
View file @
4e007632
...
...
@@ -82,7 +82,6 @@ llvm::Value* CodeGenX86_64::VisitExpr_(const CastNode* op) {
CHECK_EQ
(
from
.
lanes
(),
to
.
lanes
());
CHECK_NOTNULL
(
target_machine_
);
const
auto
has_f16c
=
TargetHasFeature
(
*
target_machine_
,
"f16c"
);
const
auto
has_avx512
=
TargetHasFeature
(
*
target_machine_
,
"avx512f"
);
if
(
from
.
lanes
()
>=
16
&&
has_avx512
)
{
...
...
@@ -101,6 +100,10 @@ llvm::Value* CodeGenX86_64::VisitExpr_(const CastNode* op) {
});
}
#if TVM_LLVM_VERSION <= 100
// The intrinsic x86_vcvtph2ps_256 was removed in LLVM 11.
const
auto
has_f16c
=
TargetHasFeature
(
*
target_machine_
,
"f16c"
);
if
(
from
.
lanes
()
>=
8
&&
has_f16c
)
{
return
CallVectorIntrin
(
::
llvm
::
Intrinsic
::
x86_vcvtph2ps_256
,
8
,
...
...
@@ -109,6 +112,7 @@ llvm::Value* CodeGenX86_64::VisitExpr_(const CastNode* op) {
DataType
::
Int
(
16
,
from
.
lanes
()),
tir
::
CallNode
::
reinterpret
,
{
op
->
value
},
tir
::
CallNode
::
PureIntrinsic
))});
}
#endif
}
return
CodeGenCPU
::
VisitExpr_
(
op
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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