This is an archive of the discontinued LLVM Phabricator instance.

[SeparateConstOffsetFromGEP] Added statistic and small refactoring
AcceptedPublic

Authored by eklepilkina on Aug 10 2022, 7:55 AM.

Diff Detail

Event Timeline

eklepilkina created this revision.Aug 10 2022, 7:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2022, 7:55 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
eklepilkina requested review of this revision.Aug 10 2022, 7:55 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2022, 7:55 AM
mkazantsev accepted this revision.Aug 11 2022, 2:19 AM

LG

llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
1179

I'm sure this is not needed, you will get function it runs on with -print-before-all

This revision is now accepted and ready to land.Aug 11 2022, 2:19 AM
eklepilkina marked an inline comment as done.Aug 11 2022, 7:22 AM

Added statistics

Hello! Decided to change this reviews stack. Could you please have a look?

LGTM, with nit: it's not NFC now, adjust commit title.

llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp
1149

Line length is > 80

  • Fix format
eklepilkina retitled this revision from [NFC][SeparateConstOffsetFromGEP] Small refactoring and reformatting to [SeparateConstOffsetFromGEP] Added statistic and small refactoring.Aug 29 2022, 8:40 AM