Same as D113842, but for i64
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D113843
[X86][Costmodel] `trunc v8i64 to v16i16/v32i16` can appear after legalization, cost is same as for `trunc v8i64 to v8i16` ClosedPublic Authored by lebedev.ri on Nov 14 2021, 6:19 AM.
Details
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Nov 14 2021, 6:43 AM Comment Actions
Thank you for the review. I assume the i32 version (D113842) is also fine? This revision was landed with ongoing or failed builds.Nov 14 2021, 7:42 AM Closed by commit rGb2839610124b: [X86][Costmodel] `trunc v8i64 to v16i16/v32i16` can appear after legalization… (authored by lebedev.ri). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 387075 llvm/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/test/Analysis/CostModel/X86/trunc.ll
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
clang-format: please reformat the code
- { ISD::FP_EXTEND, MVT::v8f64, MVT::v8f32, 1 }, - { ISD::FP_EXTEND, MVT::v8f64, MVT::v16f32, 3 }, - { ISD::FP_ROUND, MVT::v8f32, MVT::v8f64, 1 }, - - { ISD::TRUNCATE, MVT::v2i1, MVT::v2i8, 3 }, // sext+vpslld+vptestmd - { ISD::TRUNCATE, MVT::v4i1, MVT::v4i8, 3 }, // sext+vpslld+vptestmd - { ISD::TRUNCATE, MVT::v8i1, MVT::v8i8, 3 }, // sext+vpslld+vptestmd - { ISD::TRUNCATE, MVT::v16i1, MVT::v16i8, 3 }, // sext+vpslld+vptestmd - { ISD::TRUNCATE, MVT::v2i1, MVT::v2i16, 3 }, // sext+vpsllq+vptestmq - { ISD::TRUNCATE, MVT::v4i1, MVT::v4i16, 3 }, // sext+vpsllq+vptestmq244 diff lines are omitted. See full path.