Skip to content

[DebugInfo][JumpThreading] Missing debug location updates for branch instructions #96885

Closed
@Apochens

Description

@Apochens

JumpThreading-L1041

The debug location of BBTerm does not be propagated to the new branch instruction, though the new branch instruction replaces BBTerm.

    BranchInst::Create(BBTerm->getSuccessor(BestSucc), BBTerm->getIterator());
    ++NumFolds;
    BBTerm->eraseFromParent();

JumpThreading-L1660

The debug location of Term does not be propagated to the new branch instruction, though the new branch instruction replaces Term.

      Instruction *Term = BB->getTerminator();
      BranchInst::Create(OnlyDest, Term->getIterator());
      ++NumFolds;
      Term->eraseFromParent();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions