[all-commits] [llvm/llvm-project] cb8adf: [Attributor] Simplify loads from constant globals

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Thu Jun 9 04:42:06 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb8adf76f71e8d5114fb40d8ce1f55dfdb6bcfe8
      https://github.com/llvm/llvm-project/commit/cb8adf76f71e8d5114fb40d8ce1f55dfdb6bcfe8
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/test/Transforms/Attributor/ArgumentPromotion/chained.ll
    M llvm/test/Transforms/OpenMP/barrier_removal.ll

  Log Message:
  -----------
  [Attributor] Simplify loads from constant globals

If a global is constant and the initializer is known we can simplify
loads from it as the value has to be the initializer.


  Commit: 393be12b749c321821b05c9280ce5eb5d906ced7
      https://github.com/llvm/llvm-project/commit/393be12b749c321821b05c9280ce5eb5d906ced7
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

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

  Log Message:
  -----------
  [Attributor] Look at base values for align, nonnull, and deref

Stripping bitcasts and 0-geps helps normalization and minimizes the
impact of a follow up change.


  Commit: 0ece283f0326103afce93960588d4f33ca81bfcd
      https://github.com/llvm/llvm-project/commit/0ece283f0326103afce93960588d4f33ca81bfcd
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [Attributor] Add checks needed as we strengthen value simplify


  Commit: 982053e85e657fa132bf92681ba4c8eaa616b48b
      https://github.com/llvm/llvm-project/commit/982053e85e657fa132bf92681ba4c8eaa616b48b
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2022-06-09 (Thu, 09 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp

  Log Message:
  -----------
  [Attributor][NFC] Improve debug code and comments


Compare: https://github.com/llvm/llvm-project/compare/39c4ac140d1e...982053e85e65


More information about the All-commits mailing list