[PATCH] D90554: [CostModel] remove cost-kind predicate for intrinsics in basic TTI implementation

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 02:18:19 PST 2020


mstorsjo added a comment.

In D90554#2385414 <https://reviews.llvm.org/D90554#2385414>, @spatel wrote:

> Thanks, all!
> It's almost inevitable that some target will regress on some intrinsic with this change, so I'll be watching for fallout.

I noticed a change in behaviour due to this commit - on ARM and AArch64, for cases involving the log2 intrinsic - previously, llvm was able to evaluate a big pile of code to deduce that a comparison involving log2 always is true, but after this change, it no longer does that. Is that something you want to have a look into, or is that expected? I wouldn't classify it as a bug in itself, as the code does what it's supposed to, it just optimizes differently than before.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D90554



More information about the llvm-commits mailing list