[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:23:17 PST 2018
etherzhhb updated this revision to Diff 130263.
etherzhhb added a comment.
Implement isRegisterRich based on getNumberOfRegisters, and introduce a threshold to tell when the number of registers if big enough to be considered as "register-rich". Also include the usage of the isRegisterRich function in GVNHoist
Repository:
rL LLVM
https://reviews.llvm.org/D42191
Files:
include/llvm/Analysis/TargetTransformInfo.h
include/llvm/Analysis/TargetTransformInfoImpl.h
lib/Transforms/Scalar/GVNHoist.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42191.130263.patch
Type: text/x-patch
Size: 4500 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/3b5f9d53/attachment.bin>
More information about the llvm-commits
mailing list