Including debug instructions from different places in the program could cause issues with debuggers. This makes sure that any debug information about original location in outlined functions is stripped accordingly, and adds new debug information to the outlined functions.
Tests Changed:
- llvm/test/Transforms/IROutliner/legal-debug.ll
New Tests:
- llvm/test/DebugInfo/AArch64/ir-outliner.ll
is the StringRef() ctor call necessary?