llvm-project
9d0476ea - [DAGCombiner] Avoid misleading inline frames in store merging (#225358)

Commit
2 days ago
[DAGCombiner] Avoid misleading inline frames in store merging (#225358) SelectionDAG's consecutive-store merging inherits the debug location of the lowest-addressed operation. When the merged operations come from different inlined scopes, this can attribute the widened memory access to an inlined frame that covers only part of it. Keep the lowest-addressed operation's location when all merged operations belong to its function scope or are inlined within it, preserving source lines for ordinary field initialization and breakpoints. Otherwise, merge the locations of the combined operations with `DebugLoc::getMergedLocation`. Compute load and store locations independently while preserving their IR order and leaving auxiliary value nodes' locations unchanged. Assisted-by: OpenAI Codex --------- Signed-off-by: Longjun Luo <luolongjuna@gmail.com>
Author
Parents
Loading