[all-commits] [llvm/llvm-project] 361b53: [Attributor] Simplify switches with more than one ...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Aug 17 22:43:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 361b536bbc678b59cf1391346bb6613f1ab4f00c
      https://github.com/llvm/llvm-project/commit/361b536bbc678b59cf1391346bb6613f1ab4f00c
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/test/Transforms/Attributor/value-simplify.ll

  Log Message:
  -----------
  [Attributor] Simplify switches with more than one potential condition

Before, we allowed the condition to be simplified to a simple constant
only, otherwise we assumed all successors are live. Now we allow
multiple constants, and mark the default successor as dead accordingly.


  Commit: 5eb7a427b057531b03df6f96d65e013a88c536c2
      https://github.com/llvm/llvm-project/commit/5eb7a427b057531b03df6f96d65e013a88c536c2
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
    M llvm/test/Transforms/Attributor/callgraph.ll
    A openmp/libomptarget/test/jit/type_punning.c

  Log Message:
  -----------
  [Attributor][NFC] Precommit tests


Compare: https://github.com/llvm/llvm-project/compare/a9167c2e475a...5eb7a427b057


More information about the All-commits mailing list