We need such a flag to check whether the transformation is correct if LowerGEP was enabled.
Related Differential: https://reviews.llvm.org/D143542
Paths
| Differential D143980
[NFC][SeparateConstOffsetFromGEP] Added flag `lower-gep` ClosedPublic Authored by Peakulorain on Feb 13 2023, 10:07 PM.
Details Summary We need such a flag to check whether the transformation is correct if LowerGEP was enabled. Related Differential: https://reviews.llvm.org/D143542
Diff Detail
Event TimelineComment Actions As LowerGEP is a pass parameter, it would be better to expose it via the NewPM pass parameter intrastructure. It would become something like -passes="separate-const-offset-from-gep<lower-gep>". Grep for FUNCTION_PASS_WITH_PARAMS for some examples. Peakulorain retitled this revision from [NFC][SeparateConstOffsetFromGEP] Added flag `force-lower-gep` to [NFC][SeparateConstOffsetFromGEP] Added flag `lower-gep`. Comment Actions
Thanks a lot, what you suggested is more elegant. Comment Actions
Thanks for the reminder, updated. This revision is now accepted and ready to land.Feb 14 2023, 5:40 AM
This revision was landed with ongoing or failed builds.Feb 14 2023, 6:04 PM Closed by commit rGa52432f63312: [NFC][SeparateConstOffsetFromGEP] Added flag `lower-gep` (authored by Peakulorain). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 497512 llvm/include/llvm/Transforms/Scalar/SeparateConstOffsetFromGEP.h
llvm/lib/Passes/PassBuilder.cpp
llvm/lib/Passes/PassRegistry.def
llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
llvm/test/Other/new-pm-print-pipeline.ll
llvm/test/Transforms/SeparateConstOffsetFromGEP/split-gep-sub.ll
|
Single quotes