[llvm-branch-commits] [llvm] [GISel][NewPM] Port RegBankSelect (PR #217756)

Aiden Grossman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 20 14:51:49 PDT 2026


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/217756

>From 6d9b42c657cced1cbd7a1fc4b43b21ed16de54e4 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 20 Aug 2026 20:46:21 +0000
Subject: [PATCH 1/3] formatting

Created using spr 1.3.7
---
 llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
index 2d326ff3f2ca2..9405a6dbf0938 100644
--- a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp
@@ -240,8 +240,7 @@ class RegBankSelectImpl {
     /// Does the insertion point is at the beginning or end of MBB.
     bool Beginning;
 
-    void materialize() override { /*Nothing to do to materialize*/
-    }
+    void materialize() override { /*Nothing to do to materialize*/ }
 
     MachineBasicBlock::iterator getPointImpl() override {
       return Beginning ? MBB.begin() : MBB.end();

>From e9710eef4012841bb51ea419d5b0f87049fcd83d Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 20 Aug 2026 20:59:17 +0000
Subject: [PATCH 2/3] maybe fix header issue

Created using spr 1.3.7
---
 llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h b/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
index 69b895b39f241..2cdb91babfc63 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
@@ -66,6 +66,7 @@
 
 #include "llvm/ADT/StringRef.h"
 #include "llvm/CodeGen/MachineFunction.h"
+#include "llvm/CodeGen/MachineFunctionPass.h"
 #include "llvm/CodeGen/MachineFunctionAnalysisManager.h"
 #include "llvm/IR/Analysis.h"
 #include "llvm/IR/PassManager.h"

>From ecc6a85bf82023c5a0f9f0a771bfe74769b5da3f Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 20 Aug 2026 21:02:20 +0000
Subject: [PATCH 3/3] formatting

Created using spr 1.3.7
---
 llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h b/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
index 2cdb91babfc63..3ba4d382451f4 100644
--- a/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
+++ b/llvm/include/llvm/CodeGen/GlobalISel/RegBankSelect.h
@@ -66,8 +66,8 @@
 
 #include "llvm/ADT/StringRef.h"
 #include "llvm/CodeGen/MachineFunction.h"
-#include "llvm/CodeGen/MachineFunctionPass.h"
 #include "llvm/CodeGen/MachineFunctionAnalysisManager.h"
+#include "llvm/CodeGen/MachineFunctionPass.h"
 #include "llvm/IR/Analysis.h"
 #include "llvm/IR/PassManager.h"
 



More information about the llvm-branch-commits mailing list