[PATCH] D70669: [AArch64TTI] Do not return TCC_Free for all unknown intrinsics.

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 26 01:39:45 PST 2019


SjoerdMeijer added a comment.

I wanted to look into this to make a less hand wavy suggestion, but I got lost a little bit lost, which always happens when I look in that jungle that is TTI and TTIImpl etc., so will just ask a question instead.

But I was wondering why can't we look at the instruction, and also look at the (immediate) arguments, and depending on how we expect them to get materialized return a cost that is  something like the cost_instruction + cost_immediate?

And then test for something like:

  Cost Model: Found an estimated cost of 3 for instruction:   %bar.3 = call i32 @llvm.aarch64.stxr.p0i64(i64 -9223372036317904704, i64* %ptr.3)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70669/new/

https://reviews.llvm.org/D70669





More information about the llvm-commits mailing list