[CodeExtractor] Only rewrite scope of labels that were not inlined
authorFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Mon, 12 Dec 2022 15:22:44 +0000 (10:22 -0500)
committerFelipe de Azevedo Piovezan <fpiovezan@apple.com>
Mon, 12 Dec 2022 20:44:16 +0000 (15:44 -0500)
commit79d59c3f3e8abb66a758793bfd9acd8ea6b3d92b
tree0c4b09c2b928096f4776dce2eaaf06efefec9c07
parentc187182429fb3c8af09827b816c1cb8976bc93e7
[CodeExtractor] Only rewrite scope of labels that were not inlined

dbg.labels that were inlined from other functions should have their
scope preserved upon outlining for the same reasons described in
D139669.
llvm/lib/Transforms/Utils/CodeExtractor.cpp
llvm/test/Transforms/HotColdSplit/split-out-dbg-label.ll