[CostModel][X86][ARM] Teach default implementation of getCastInstrCost to not...
[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 If both the source and the destination need to be split then the two halves of the split operation are completely independent and don't need to be split or joined. So we don't need to assess a cost for the split or join. Differential Revision: https://reviews.llvm.org/D79111
Showing
- llvm/include/llvm/CodeGen/BasicTTIImpl.h 17 additions, 11 deletionsllvm/include/llvm/CodeGen/BasicTTIImpl.h
- llvm/test/Analysis/CostModel/ARM/cast.ll 310 additions, 310 deletionsllvm/test/Analysis/CostModel/ARM/cast.ll
- llvm/test/Analysis/CostModel/X86/arith-fix.ll 80 additions, 80 deletionsllvm/test/Analysis/CostModel/X86/arith-fix.ll
- llvm/test/Analysis/CostModel/X86/arith-overflow.ll 80 additions, 80 deletionsllvm/test/Analysis/CostModel/X86/arith-overflow.ll
- llvm/test/Analysis/CostModel/X86/cast.ll 8 additions, 8 deletionsllvm/test/Analysis/CostModel/X86/cast.ll
- llvm/test/Analysis/CostModel/X86/extend.ll 14 additions, 14 deletionsllvm/test/Analysis/CostModel/X86/extend.ll
- llvm/test/Analysis/CostModel/X86/fptosi.ll 16 additions, 16 deletionsllvm/test/Analysis/CostModel/X86/fptosi.ll
- llvm/test/Analysis/CostModel/X86/fptoui.ll 27 additions, 27 deletionsllvm/test/Analysis/CostModel/X86/fptoui.ll
- llvm/test/Analysis/CostModel/X86/masked-intrinsic-cost.ll 20 additions, 20 deletionsllvm/test/Analysis/CostModel/X86/masked-intrinsic-cost.ll
- llvm/test/Analysis/CostModel/X86/min-legal-vector-width.ll 19 additions, 19 deletionsllvm/test/Analysis/CostModel/X86/min-legal-vector-width.ll
- llvm/test/Analysis/CostModel/X86/sitofp.ll 3 additions, 3 deletionsllvm/test/Analysis/CostModel/X86/sitofp.ll
- llvm/test/Analysis/CostModel/X86/trunc.ll 77 additions, 77 deletionsllvm/test/Analysis/CostModel/X86/trunc.ll
- llvm/test/Analysis/CostModel/X86/uitofp.ll 5 additions, 5 deletionsllvm/test/Analysis/CostModel/X86/uitofp.ll
Loading
Please register or sign in to comment