[all-commits] [llvm/llvm-project] 885724: [SimplifyCFG] Add test for invoke of nounwind non-...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jun 3 06:28:45 PDT 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 885724c60cdc4b3fb221830d43e2ecd79ace9ce1
      https://github.com/llvm/llvm-project/commit/885724c60cdc4b3fb221830d43e2ecd79ace9ce1
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M llvm/test/Transforms/SimplifyCFG/invoke.ll

  Log Message:
  -----------
  [SimplifyCFG] Add test for invoke of nounwind non-willreturn function (NFC)

Test both the case with and without willreturn attribute.

(cherry picked from commit 1f1de06165bb39f66049cdc942151fc6ed193123)


  Commit: 99b5eb2d3a61b55a61849cebabf1d5d66b4a13c4
      https://github.com/llvm/llvm-project/commit/99b5eb2d3a61b55a61849cebabf1d5d66b4a13c4
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/Transforms/SimplifyCFG/invoke.ll

  Log Message:
  -----------
  [Local] Don't remove invoke of non-willreturn function

The code was only checking for memory side-effects, but not for
divergence side-effects. Replace this with a generic check.

(cherry picked from commit 2e101cca690645d63ae4de1eb7b0e11d322448fd)


Compare: https://github.com/llvm/llvm-project/compare/2f0a69c32a4c...99b5eb2d3a61


More information about the All-commits mailing list