[all-commits] [llvm/llvm-project] 113a06: {DebugInfo][LSR] Don't cache dbg.value that are al...

chrisjbris via All-commits all-commits at lists.llvm.org
Thu Aug 5 11:17:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 113a06f7a50010b555a0fdabc9db0a8338e2f2a8
      https://github.com/llvm/llvm-project/commit/113a06f7a50010b555a0fdabc9db0a8338e2f2a8
  Author: Chris Jackson <chris.jackson at sony.com>
  Date:   2021-08-05 (Thu, 05 Aug 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    M llvm/test/Transforms/LoopStrengthReduce/pr51329.ll

  Log Message:
  -----------
  {DebugInfo][LSR] Don't cache dbg.value that are already undef

The SCEV-based salvaging method caches dbg.value information pre-LSR so
that salvaging may be attempted post-LSR. If the dbg.value are already
undef pre-LSR then a salvage attempt would be fruitless, so avoid
caching them.

Reviewed By: StephenTozer

Differential Revision: https://reviews.llvm.org/D107448




More information about the All-commits mailing list