[all-commits] [llvm/llvm-project] 88a286: TwoAddressInstructions: Move the rescheduled copy ...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Tue Sep 29 05:18:03 PDT 2026
Branch: refs/heads/users/arsenm/codegen/twoaddr-reschedule-copy-order
Home: https://github.com/llvm/llvm-project
Commit: 88a286909296371220d2028347dc41c9f848c6fd
https://github.com/llvm/llvm-project/commit/88a286909296371220d2028347dc41c9f848c6fd
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2026-09-29 (Tue, 29 Sep 2026)
Changed paths:
M llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
A llvm/test/CodeGen/X86/twoaddr-reschedule-copy-chain.mir
Log Message:
-----------
TwoAddressInstructions: Move the rescheduled copy chain back to front
rescheduleMIBelowKill sinks an instruction below the kill of its tied
source, along with the run of copies that follows it. With LiveIntervals
the copies are spliced one at a time so handleMove sees a well-formed
block, but they were visited front to back and each inserted before the
previously moved one. This reversed them, and transiently moved a copy
below its use, asserting in handleMoveDown.
Walk them back to front instead, which also preserves the original order.
Exposed by #225174, which made LiveIntervals available here by default.
Co-Authored-By: Claude Opus 5 <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list