[llvm] [llvm/unittests] Reset the IsSSA property when using finalizeBundle() (PR #77469)
Sameer Sahasrabuddhe via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 05:22:15 PST 2024
https://github.com/ssahasra created https://github.com/llvm/llvm-project/pull/77469
None
>From b9be74bef1a6fa595bc70db75e8ced14ac5f01eb Mon Sep 17 00:00:00 2001
From: Sameer Sahasrabuddhe <sameer.sahasrabuddhe at amd.com>
Date: Tue, 9 Jan 2024 18:49:14 +0530
Subject: [PATCH] [llvm/unittests] Reset the IsSSA property when using
finalizeBundle()
---
llvm/unittests/MI/LiveIntervalTest.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/unittests/MI/LiveIntervalTest.cpp b/llvm/unittests/MI/LiveIntervalTest.cpp
index 1fd1c78a5e55df..edc4baa6bfeca2 100644
--- a/llvm/unittests/MI/LiveIntervalTest.cpp
+++ b/llvm/unittests/MI/LiveIntervalTest.cpp
@@ -156,6 +156,7 @@ static void testHandleMoveIntoNewBundle(MachineFunction &MF, LiveIntervals &LIS,
// Build bundle
finalizeBundle(MBB, I, std::next(ToInstr.getIterator()));
+ MF.getProperties().reset(MachineFunctionProperties::Property::IsSSA);
// Update LiveIntervals
MachineBasicBlock::instr_iterator BundleStart = std::prev(I);
More information about the llvm-commits
mailing list