OSDN Git Service

[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)
commit303105c8eeeef7f07b960713653fdb7fcccfa51e
tree8b0aca6cf3555ee9e2bf2abcb4ba45d12ee4bdf7
parente2815d19087a91591a91f047debd09d6c966ff02
[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/llvm/trunk@363287 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/AlwaysInliner.cpp