[PATCH] D42191: [RFC] [TargetTransformInfo] Introduce isRegisterRich, it returns true if the target architecture is register-rich.

Hongbin Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 17 13:24:00 PST 2018


etherzhhb added a comment.

In https://reviews.llvm.org/D42191#979132, @kparzysz wrote:

> There is already a function getNumberOfRegisters.  Would it be enough to return some large number from it?


Yes, I think getNumberOfRegisters is sufficient. But instead of comparing getNumberOfRegisters with a large number in every passes, maybe we could introduce a function in TargetTransformInfo to do the comparison?


Repository:
  rL LLVM

https://reviews.llvm.org/D42191





More information about the llvm-commits mailing list