]> granicus.if.org Git - clang/commit
[clang][NewPM] Fix broken -O0 test from missing assumptions
authorLeonard Chan <leonardchan@google.com>
Thu, 13 Jun 2019 18:18:40 +0000 (18:18 +0000)
committerLeonard Chan <leonardchan@google.com>
Thu, 13 Jun 2019 18:18:40 +0000 (18:18 +0000)
commit863e1f381d04960642c9d7b83acb3b8b55707899
tree76bd94b6a7dec9b5fab83cf29122920944ada2a8
parent644dc69f5d1e6ac289f16991006819645eae54ff
[clang][NewPM] Fix broken -O0 test from missing assumptions

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.

Differential Revision: https://reviews.llvm.org/D63170

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363287 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/builtin-movdir.c
test/CodeGen/lto-newpm-pipeline.c