[PATCH] D79111: [CostModel][X86][ARM] Teach default implementation of getCastInstrCost to not add a split/join cost if source type and the destination type both have a SplitVector action
Dave Green via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 30 11:15:08 PDT 2020
dmgreen added inline comments.
================
Comment at: llvm/test/Analysis/CostModel/ARM/cast.ll:374
; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 10 for instruction: %r82 = fptrunc <4 x double> undef to <4 x float>
-; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 42 for instruction: %r83 = fptrunc <8 x double> undef to <8 x float>
-; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 85 for instruction: %r84 = fptrunc <16 x double> undef to <16 x float>
+; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 40 for instruction: %r83 = fptrunc <8 x double> undef to <8 x float>
+; CHECK-MVE-NEXT: Cost Model: Found an estimated cost of 80 for instruction: %r84 = fptrunc <16 x double> undef to <16 x float>
----------------
These all sound OK.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79111/new/
https://reviews.llvm.org/D79111
More information about the llvm-commits
mailing list