[all-commits] [llvm/llvm-project] f12fb2: [IRBuilder] Always respect inserter/folder

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Feb 19 08:44:51 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f12fb2d99b8dd0dbef1c79f1d401200150f2d0bd
      https://github.com/llvm/llvm-project/commit/f12fb2d99b8dd0dbef1c79f1d401200150f2d0bd
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-02-19 (Wed, 19 Feb 2020)

  Changed paths:
    M clang/test/OpenMP/parallel_codegen.cpp
    M clang/test/OpenMP/target_firstprivate_codegen.cpp
    M llvm/lib/IR/IRBuilder.cpp
    M llvm/test/Transforms/InstCombine/saturating-add-sub.ll

  Log Message:
  -----------
  [IRBuilder] Always respect inserter/folder

Some IRBuilder methods that were originally defined on
IRBuilderBase do not respect custom IRBuilder inserters/folders,
because those were not accessible prior to D73835. Fix this by
making use of existing (and now accessible) IRBuilder methods,
which will handle inserters/folders correctly.

There are some changes in OpenMP tests, where bitcasts now get
constant folded. I've also highlighted one InstCombine test which
now finishes in two rather than three iterations, thanks to new
instructions being inserted into the worklist.

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




More information about the All-commits mailing list