]> granicus.if.org Git - clang/commit
[clang][NewPM] Fixing remaining -O0 tests that are broken under new PM
authorLeonard Chan <leonardchan@google.com>
Wed, 19 Jun 2019 17:41:30 +0000 (17:41 +0000)
committerLeonard Chan <leonardchan@google.com>
Wed, 19 Jun 2019 17:41:30 +0000 (17:41 +0000)
commitfe783bd98452fb872ad01eb217bfba0584cae228
tree9a1dde6ca32f474f03055e2d85a32b3ac6198b23
parent4df2fbbebb653f12f61ed3537ec2c99509d43a5b
[clang][NewPM] Fixing remaining -O0 tests that are broken under new PM

- CodeGen/flatten.c will fail under new PM becausec the new PM AlwaysInliner
  seems to intentionally inline functions but not call sites marked with
  alwaysinline (D23299)
- Tests that check remarks happen to check them for the inliner which is not
  turned on at O0. These tests just check that remarks work, but we can make
  separate tests for the new PM with -O1 so we can turn on the inliner and
  check the remarks with minimal changes.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363846 91177308-0d34-0410-b5e6-96231b3b80d8
test/CMakeLists.txt
test/CodeGen/flatten.c
test/CodeGenCXX/flatten.cpp
test/Frontend/optimization-remark-line-directive.c
test/Frontend/optimization-remark-new-pm.c [new file with mode: 0644]
test/Frontend/optimization-remark-with-hotness-new-pm.c [new file with mode: 0644]
test/Frontend/optimization-remark-with-hotness.c
test/Frontend/optimization-remark.c
test/lit.cfg.py
test/lit.site.cfg.py.in