llvm-project
a1ba87de - [GlobalISel] Fix stale debug location in tryCombineTrunc (#216411)

Commit
41 days ago
[GlobalISel] Fix stale debug location in tryCombineTrunc (#216411) LegalizationArtifactCombiner shares one MachineIRBuilder across all combines, and setInstr() only moves the insert point: it leaves the builder's DebugLoc pointing at whatever instruction was combined previously. Instructions built for an artifact that carries no location of its own therefore inherit an unrelated statement's location. rdar://184762794 Assisted-by: claude
Author
Parents
Loading