[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 llvm-svn: 363287
Showing
- clang/test/CodeGen/builtin-movdir.c 4 additions, 2 deletionsclang/test/CodeGen/builtin-movdir.c
- clang/test/CodeGen/lto-newpm-pipeline.c 2 additions, 0 deletionsclang/test/CodeGen/lto-newpm-pipeline.c
- llvm/lib/Transforms/IPO/AlwaysInliner.cpp 11 additions, 2 deletionsllvm/lib/Transforms/IPO/AlwaysInliner.cpp
Please register or sign in to comment