1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/Transforms/InstMerge
Jordan Rupprecht 887f3b8b0f [DebugInfo][InstMerge] Fix -debugify for phi node created by -mldst-motion
Summary:
-mldst-motion creates a new phi node without any debug info. Use the merged debug location from the incoming stores to fix this.

Fixes PR38177. The test case here is (somewhat) simplified from:

```
struct S {
  int foo;
  void fn(int bar);
};
void S::fn(int bar) {
  if (bar)
    foo = 1;
  else
    foo = 0;
}
```

Reviewers: dblaikie, gbedwell, aprantl, vsk

Reviewed By: vsk

Subscribers: vsk, JDevlieghere, llvm-commits

Tags: #debug-info

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

llvm-svn: 346027
2018-11-02 18:25:41 +00:00
..
exceptions.ll
st_sink_barrier_call.ll
st_sink_bugfix_22613.ll
st_sink_check_debug.ll
st_sink_debuginvariant.ll
st_sink_no_barrier_call.ll
st_sink_no_barrier_load.ll
st_sink_no_barrier_store.ll
st_sink_two_stores.ll
st_sink_with_barrier.ll