Files
archived-llvm/test/Transforms/SimplifyCFG
Jeremy Morse 763ae301ec [SimplifyCFG] Retain debug info when threading jumps with critical edges
Fixes bug 38023: https://bugs.llvm.org/show_bug.cgi?id=38023

The SimplifyCFG pass will perform jump threading in some cases where
doing so is trivial and would simplify the CFG. When folding a series
of blocks with redundant conditional branches into an unconditional "critical
edge" block, it does not keep the debug location associated with the previous
conditional branch.

This patch fixes the bug described by copying the debug info from the
old conditional branch to the new unconditional branch instruction, and
adds a regression test for the SimplifyCFG pass that covers this case.

Patch by Stephen Tozer!

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355833 91177308-0d34-0410-b5e6-96231b3b80d8
2019-03-11 16:23:59 +00:00
..
2017-08-07 18:30:35 +00:00
2018-04-26 13:37:00 +00:00
2016-03-28 22:12:21 +00:00
2015-02-13 11:08:40 +00:00
2016-03-28 22:12:21 +00:00
2016-03-28 22:12:21 +00:00
2016-09-16 02:43:36 +00:00
2018-11-14 19:53:41 +00:00