[all-commits] [llvm/llvm-project] ba2b34: [DSE] Simplify isGuaranteedLoopInvariant() (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Dec 24 00:41:22 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ba2b34b1c7d47a5cb1f5c73400356b975cc16298
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2021-12-24 (Fri, 24 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

  Log Message:
  [DSE] Simplify isGuaranteedLoopInvariant() (NFC)

We have Value->stripInBoundsConstantOffsets() which does what we
want here, but the inbounds requirement isn't actually necessary.
We should probably add Value->stripConstantOffsets() as well.

More information about the All-commits mailing list