diff options
| author | Shan Huang <52285902006@stu.ecnu.edu.cn> | 2024-07-08 11:05:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-08 11:05:00 +0800 |
| commit | 431b9965f59ad68e5c7d7112bc6b7ea154e5f85c (patch) | |
| tree | ff10ae901b7620e6243bd1fd1bbc122d296cc489 /llvm/lib | |
| parent | 73bfb65c5714c6442a00bce866132d28ea609254 (diff) | |
| download | llvm-431b9965f59ad68e5c7d7112bc6b7ea154e5f85c.zip llvm-431b9965f59ad68e5c7d7112bc6b7ea154e5f85c.tar.gz llvm-431b9965f59ad68e5c7d7112bc6b7ea154e5f85c.tar.bz2 | |
[DebugInfo][SpeculativeExecution] Drop the debug location of the hoisted instruction (#97384)
Fix #97375 .
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp b/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp index f921ee72..ed9c182 100644 --- a/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp +++ b/llvm/lib/Transforms/Scalar/SpeculativeExecution.cpp @@ -328,6 +328,7 @@ bool SpeculativeExecutionPass::considerHoistingFromTo( ++I; if (!NotHoisted.count(&*Current)) { Current->moveBefore(ToBlock.getTerminator()); + Current->dropLocation(); } } return true; |
