[PATCH] D115016: [CostModel][X86] Add i64 mul cost for avx as 1cy
    Haohai, Wen via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Dec  5 23:34:55 PST 2021
    
    
  
HaohaiWen added a comment.
> Another problem, do we need to add check for 64Bit?
TLI->getTypeLegalizationCost(DL, Ty) for i64 is i32. Therefore mul i64, i64 on 32bit target will match X86CostTbl.
  opt --analyze -cost-model fuzz.ll -mcpu=skylake-avx512  -mtriple=i386--
  Cost Model: Found an estimated cost of 2 for instruction:   %result = mul i64 %a0, %a1
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115016/new/
https://reviews.llvm.org/D115016
    
    
More information about the llvm-commits
mailing list