[PATCH] D126644: [llvm/CodeGen] Add ExpandLargeDivRem pass
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 18 15:40:45 PDT 2022
arsenm added inline comments.
================
Comment at: llvm/lib/CodeGen/TargetPassConfig.cpp:1115
addPass(createPreISelIntrinsicLoweringPass());
+ addPass(createExpandLargeDivRemPass());
PM->add(createTargetTransformInfoWrapperPass(TM->getTargetIRAnalysis()));
----------------
This doesn't belong in this patch. Currently this is lacking in legality checks for the expansion. I would prefer to see a separate patch which adds the pass and checks the legality per target, rather than relying on the arbitrary command line threshold
================
Comment at: llvm/test/Transforms/ExpandLargeDivRem/sdiv129.ll:11
+
+; CHECK-LABEL: @sdiv129(
+; CHECK-NEXT: _udiv-special-cases:
----------------
The positioning of the checks looks weird. Usually update_test_checks put these comments inside the function?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126644/new/
https://reviews.llvm.org/D126644
More information about the llvm-commits
mailing list