[PATCH] D50887: [DWARF] Missing location debug information with -O2.

Carlos Alberto Enciso via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 17 02:23:06 PDT 2018


CarlosAlbertoEnciso created this revision.
CarlosAlbertoEnciso added reviewers: andreadb, probinson, wolfgangp, dblaikie.
Herald added subscribers: llvm-commits, JDevlieghere, aprantl.

For the below test:

  typedef float __attribute__((__vector_size__(16))) f4;
  f4 get();
  int main() {
     float MyVar = get()[0];
     if (MyVar)
       return 1;
  }

Debug location information for 'MyVar' is missing with -O2.

Check that Machine CSE correctly handles during the transformation, the
debug location information for local variables.


Repository:
  rL LLVM

https://reviews.llvm.org/D50887

Files:
  include/llvm/CodeGen/MachineInstr.h
  lib/CodeGen/MachineCSE.cpp
  lib/CodeGen/MachineInstr.cpp
  lib/CodeGen/MachineSink.cpp
  test/Transforms/EarlyCSE/debuginfo-locations-dce.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50887.161183.patch
Type: text/x-patch
Size: 6760 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180817/17b8adae/attachment.bin>


More information about the llvm-commits mailing list