Skip to content

Conversation

@SergeyShch01
Copy link
Contributor

@SergeyShch01 SergeyShch01 commented Jul 11, 2025

The previous commit 8472eb1 broke the sanitizer-aarch64-linux builder.

This patch fixes it: unused variable is removed

@llvmbot
Copy link
Member

llvmbot commented Jul 11, 2025

@llvm/pr-subscribers-backend-aarch64

Author: Sergey Shcherbinin (SergeyShch01)

Changes

The previous commit 8472eb1 broke the sanitizer-aarch64-linux builder.

This patch fixes it: unsued variable is removed


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

1 Files Affected:

  • (modified) llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp (-1)
diff --git a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
index edbc3d8c3f614..e6b22695761e7 100644
--- a/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
+++ b/llvm/lib/Target/AArch64/AArch64LoadStoreOptimizer.cpp
@@ -2569,7 +2569,6 @@ MachineBasicBlock::iterator AArch64LoadStoreOpt::findMatchingUpdateInsnForward(
     // such that BaseReg is alive along it but not at its exits
     MachineBasicBlock *SuccToVisit = nullptr;
     unsigned LiveSuccCount = 0;
-    MCRegister RegNoBAse = BaseReg;
     for (MachineBasicBlock *Succ : CurMBB->successors()) {
       for (MCRegAliasIterator AI(BaseReg, TRI, true); AI.isValid(); ++AI) {
         if (Succ->isLiveIn(*AI)) {

@SergeyShch01
Copy link
Contributor Author

@john-brawn-arm, I missed the unused variable in my prev commit ([AArch64LoadStoreOpt] BaseReg update is searched also in CF successor) - could you please approve/merge the fix?

Copy link
Collaborator

@john-brawn-arm john-brawn-arm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@john-brawn-arm john-brawn-arm merged commit 6bcc38e into llvm:main Jul 11, 2025
11 checks passed
amirnd51 pushed a commit to amirnd51/llvm-project that referenced this pull request Jul 11, 2025
…48206)

The previous commit 8472eb1 broke the
sanitizer-aarch64-linux builder.

This patch fixes it: unused variable is removed
bonsthie pushed a commit to bonsthie/llvm-project that referenced this pull request Jul 22, 2025
…48206)

The previous commit 8472eb1 broke the
sanitizer-aarch64-linux builder.

This patch fixes it: unused variable is removed
steven-studio pushed a commit to steven-studio/llvm-project that referenced this pull request Sep 11, 2025
llvm#148206)

The previous commit 7813f464666448512744b6073aa8af127f912c06 broke the
sanitizer-aarch64-linux builder.

This patch fixes it: unused variable is removed
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.

3 participants