[all-commits] [llvm/llvm-project] 551cae: Make likelihood lit test less brittle

mordante via All-commits all-commits at lists.llvm.org
Mon Oct 12 09:58:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 551caec4a8af79483823e2940d40afb4c1df5da1
      https://github.com/llvm/llvm-project/commit/551caec4a8af79483823e2940d40afb4c1df5da1
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2020-10-12 (Mon, 12 Oct 2020)

  Changed paths:
    M clang/test/CodeGenCXX/attr-likelihood-if-vs-builtin-expect.cpp

  Log Message:
  -----------
  Make likelihood lit test less brittle

Jeremy Morse discovered an issue with the lit test introduced in D88363. The
test gives different results for Sony's `-O1`.

The test needs to run at `-O1` otherwise the likelihood attribute will be
ignored. Instead of running all `-O1` passes it only runs the lower-expect pass
which is needed to lower `__builtin_expect`.

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




More information about the All-commits mailing list