[all-commits] [llvm/llvm-project] 38dd22: [NFC][SimplifyCFG] Add common code sinking test wi...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Wed Apr 28 09:09:25 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 38dd222b4a5bc29eed5be90f85ca754a521b0cd2
      https://github.com/llvm/llvm-project/commit/38dd222b4a5bc29eed5be90f85ca754a521b0cd2
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

  Changed paths:
    M llvm/test/Transforms/SimplifyCFG/X86/sink-common-code.ll

  Log Message:
  -----------
  [NFC][SimplifyCFG] Add common code sinking test with direct and indirect callees

This is the pattern ICP produces.
We shouldn't fold this back into an indirect call.


  Commit: d16d820c2e6400aa2242efcedbfa824fbfa2fc09
      https://github.com/llvm/llvm-project/commit/d16d820c2e6400aa2242efcedbfa824fbfa2fc09
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-04-28 (Wed, 28 Apr 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyCFG.cpp
    M llvm/test/Transforms/SimplifyCFG/X86/sink-common-code.ll

  Log Message:
  -----------
  [SimplifyCFG] Try 2: sink all-indirect indirect calls

Note that we don't want to turn a partially-direct call
into an indirect one, that will break ICP amongst other things.


Compare: https://github.com/llvm/llvm-project/compare/8978b1d3717f...d16d820c2e64


More information about the All-commits mailing list