[PATCH] D87494: [WIP] Improve LSR debug-info

Markus Lavin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 14 03:58:16 PDT 2020


markus updated this revision to Diff 291534.
markus added a reviewer: aprantl.
markus added a comment.
Herald added a subscriber: ormris.

Change of appraoch. Instead of hooking into `deleteDeadPHIs` with an `AboutToDeleteCallback` we do a pre-pass to store a way the `llvm.dbg.value` of the loop as well as their SCEV expressions. After LSR has done its thing we go through those stored away `llvm.dbg.value` and if any of them now has an `undef` variable location we try to update it using its stored SCEV.

At least this way is clean and simple.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87494/new/

https://reviews.llvm.org/D87494

Files:
  llvm/include/llvm/Analysis/ScalarEvolution.h
  llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
  llvm/test/DebugInfo/COFF/fpo-shrink-wrap.ll
  llvm/test/Transforms/LoopStrengthReduce/dbg-preserve-0.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87494.291534.patch
Type: text/x-patch
Size: 9476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200914/7e801493/attachment.bin>


More information about the llvm-commits mailing list