aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorShan Huang <52285902006@stu.ecnu.edu.cn>2024-07-15 09:46:05 +0800
committerGitHub <noreply@github.com>2024-07-15 09:46:05 +0800
commit33bdb87adc16e2890beeeb64a980317e7c4292d7 (patch)
treeaa13b98fc1059aee90c2149eea4152fbdf6d8354 /llvm/lib/CodeGen/CodeGen.cpp
parentd83d09facdc37bd1bd8c697e16d889ff8a4f369b (diff)
downloadllvm-33bdb87adc16e2890beeeb64a980317e7c4292d7.zip
llvm-33bdb87adc16e2890beeeb64a980317e7c4292d7.tar.gz
llvm-33bdb87adc16e2890beeeb64a980317e7c4292d7.tar.bz2
[DebugInfo][SimpleLoopUnswitch] Fix missing debug location updates (#97662)
Fix #97559 . For the change at line 1253, I propagate the debug location of the terminator (i.e., the insertion point) to the new phi. because `MergeBB` is generated by splitting `ExitBB` several lines above, it only has the terminator, which could provide a reasonable debug location. For the change at line 2348, I switch the order of moving and cloning `TI`. Because `NewTI` cloned from `TI` is inserted into the original place where `TI` is, `NewTI` should preserve the origianl debug location. At the same time, doing this allows us to propagate the debug location to the new branch instruction replacing `NewTI` (the change at line 2446).
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions