Skip to content

[ARM][NFC] Use addLiveIns method instead of manually adding live-ins #87560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2024

Conversation

AZero13
Copy link
Contributor

@AZero13 AZero13 commented Apr 3, 2024

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Apr 3, 2024

@llvm/pr-subscribers-backend-systemz

@llvm/pr-subscribers-backend-arm

Author: AtariDreams (AtariDreams)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/87560.diff

1 Files Affected:

  • (modified) llvm/lib/Target/ARM/ARMConstantIslandPass.cpp (+1-4)
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
index 7a3ba5870bc6df..c9b25a9d629743 100644
--- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -1025,10 +1025,7 @@ MachineBasicBlock *ARMConstantIslands::splitBlockBeforeInstr(MachineInstr *MI) {
   OrigBB->addSuccessor(NewBB);
 
   // Update live-in information in the new block.
-  MachineRegisterInfo &MRI = MF->getRegInfo();
-  for (MCPhysReg L : LRs)
-    if (!MRI.isReserved(L))
-      NewBB->addLiveIn(L);
+  addLiveIns(*NewBB, LRs);
 
   // Update internal data structures to account for the newly inserted MBB.
   // This is almost the same as updateForInsertedWaterBlock, except that

@AZero13 AZero13 changed the title [ARM] Use addLiveIns method other manually adding live-ins [NFC] [ARM] Use addLiveIns method other manually adding live-ins (NFC) Apr 3, 2024
@AZero13 AZero13 force-pushed the liveins branch 3 times, most recently from 6d4d22e to 58522f3 Compare April 3, 2024 21:45
@AZero13 AZero13 changed the title [ARM] Use addLiveIns method other manually adding live-ins (NFC) Use addLiveIns method other manually adding live-ins (NFC) Apr 3, 2024
@AZero13 AZero13 changed the title Use addLiveIns method other manually adding live-ins (NFC) Use addLiveIns method instead of manually adding live-ins (NFC) Apr 3, 2024
@AZero13 AZero13 force-pushed the liveins branch 6 times, most recently from 7fd6a74 to c72549f Compare April 4, 2024 16:22
@AZero13 AZero13 changed the title Use addLiveIns method instead of manually adding live-ins (NFC) [ARM][NFC] Use addLiveIns method instead of manually adding live-ins Apr 6, 2024
@AZero13 AZero13 force-pushed the liveins branch 3 times, most recently from 7fb09d5 to 8f5703d Compare April 11, 2024 21:59
@AZero13 AZero13 merged commit 6e14583 into llvm:main May 26, 2024
4 of 7 checks passed
@AZero13 AZero13 deleted the liveins branch May 26, 2024 23:29
nikic added a commit that referenced this pull request May 27, 2024
…ive-ins (#87560)"

This reverts commit 6e14583.

PR merged without review.
AZero13 added a commit to AZero13/llvm-project that referenced this pull request Jun 24, 2024
AZero13 added a commit to AZero13/llvm-project that referenced this pull request Jun 24, 2024
AZero13 added a commit to AZero13/llvm-project that referenced this pull request Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants