[PATCH] D130076: [llvm/CodeGen] Enable the ExpandLargeDivRem pass for X86, Arm and AArch64
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 9 06:21:40 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/include/llvm/Analysis/TargetTransformInfo.h:690-691
+ /// Returns the maximum bitwidth of legal div and rem instructions.
+ unsigned maxLegalDivRemBitWidth() const;
+
----------------
arsenm wrote:
> TargetTransformInfo isn't really the appropriate place to put something for a lowering decision. TargetLowering would make more sense
The name here is also misleading. It's not the max legal width, just the maximum codegen supports. 128 is still not really legal in the normal use of the term
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130076/new/
https://reviews.llvm.org/D130076
More information about the llvm-commits
mailing list