Page MenuHomePhabricator

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

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



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.