[llvm] [AArch64][GlobalISel] Fix miscompile on carry-in selection (PR #68840)
Amara Emerson via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 18 17:04:22 PDT 2023
================
@@ -3552,6 +3557,13 @@ bool AArch64InstructionSelector::select(MachineInstr &I) {
return false;
}
+bool AArch64InstructionSelector::selectAndRestoreState(MachineInstr &I) {
+ MachineIRBuilderState OldMIBState = MIB.getState();
+ bool Success = select(I);
+ MIB.getState() = std::move(OldMIBState);
----------------
aemerson wrote:
I'm also not familiar with that, but we already copy DebugLocs everywhere in llvm so I doubt think it's an issue?
https://github.com/llvm/llvm-project/pull/68840
More information about the llvm-commits
mailing list