This is an archive of the discontinued LLVM Phabricator instance.

[clang][NewPM] Fix broken -O0 test from missing assumptions
ClosedPublic

Authored by leonardchan on Jun 11 2019, 2:43 PM.

Details

Summary

Add an AssumptionCache callback to the InlineFuntionInfo used for the AlwaysInlinerPass to match codegen of the AlwaysInlinerLegacyPass to generate llvm.assume. This fixes CodeGen/builtin-movdir.c when new PM is enabled by default.

Diff Detail

Event Timeline

leonardchan created this revision.Jun 11 2019, 2:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 11 2019, 2:43 PM
chandlerc accepted this revision.Jun 12 2019, 8:56 PM

LGTM. Bit annoying that we need to do this at O0, but fine...

This revision is now accepted and ready to land.Jun 12 2019, 8:56 PM
This revision was automatically updated to reflect the committed changes.