[all-commits] [llvm/llvm-project] cc7803: [LSR][DebugInfo] Don't unnecessarily drop DebugLocs

yuanboli233 via All-commits all-commits at lists.llvm.org
Mon Apr 26 05:15:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc7803ee3f767412223c234586834976d257a521
      https://github.com/llvm/llvm-project/commit/cc7803ee3f767412223c234586834976d257a521
  Author: Yuanbo Li <yuanboli233 at gmail.com>
  Date:   2021-04-26 (Mon, 26 Apr 2021)

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

  Log Message:
  -----------
  [LSR][DebugInfo] Don't unnecessarily drop DebugLocs

When transforming a loop terminating condition into a "max" comparison,
the DebugLoc from the old condition should be set on the newly created
comparison. They are the same operation, just optimized. Fixes PR48067.

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




More information about the All-commits mailing list