This is an archive of the discontinued LLVM Phabricator instance.

[LICM] Add allowspeculation pass options.
ClosedPublic

Authored by fhahn on Mar 17 2022, 12:55 PM.

Details

Summary

This adds a new option to control AllowSpeculation added in D119965 when
using -passes=....

This allows reproducing #54023 using opt.

Diff Detail

Event Timeline

fhahn created this revision.Mar 17 2022, 12:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 12:55 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
fhahn requested review of this revision.Mar 17 2022, 12:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2022, 12:55 PM
aeubanks added inline comments.Mar 17 2022, 1:10 PM
llvm/include/llvm/Transforms/Scalar/LICM.h
74

should also implement

void printPipeline(raw_ostream &OS,
                     function_ref<StringRef(StringRef)> MapClassName2PassName);

with a corresponding test in llvm/test/Other/new-pm-print-pipeline.ll

fhahn updated this revision to Diff 416453.Mar 18 2022, 3:52 AM

Implement printPipeline and add test.

fhahn marked an inline comment as done.Mar 18 2022, 3:52 AM
fhahn added inline comments.
llvm/include/llvm/Transforms/Scalar/LICM.h
74

Done, thanks!

aeubanks accepted this revision.Mar 18 2022, 8:43 AM
This revision is now accepted and ready to land.Mar 18 2022, 8:43 AM
fhahn marked an inline comment as done.Mar 18 2022, 9:48 AM

Thanks!

This revision was landed with ongoing or failed builds.Mar 18 2022, 9:52 AM
This revision was automatically updated to reflect the committed changes.