Skip to content

Commit d201749

Browse files
SC llvm teamSC llvm team
authored andcommitted
Merged main:cbf931e16f6d into amd-gfx:3d027bc4e627
Local branch amd-gfx 3d027bc Merged main:9ae92d70561b into amd-gfx:6cc1d54843d5 Remote branch main cbf931e [TableGen][GlobalISel] Add GINodeEquiv for sdivrem/udivrem (llvm#120819)
2 parents 3d027bc + cbf931e commit d201749

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+363
-1610
lines changed

llvm/include/llvm/CodeGen/DroppedVariableStatsMIR.h

Lines changed: 0 additions & 70 deletions
This file was deleted.

llvm/include/llvm/CodeGen/MachineFunctionPass.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#ifndef LLVM_CODEGEN_MACHINEFUNCTIONPASS_H
1919
#define LLVM_CODEGEN_MACHINEFUNCTIONPASS_H
2020

21-
#include "llvm/CodeGen/DroppedVariableStatsMIR.h"
2221
#include "llvm/CodeGen/MachineFunction.h"
2322
#include "llvm/Pass.h"
2423

@@ -68,7 +67,6 @@ class MachineFunctionPass : public FunctionPass {
6867
MachineFunctionProperties RequiredProperties;
6968
MachineFunctionProperties SetProperties;
7069
MachineFunctionProperties ClearedProperties;
71-
DroppedVariableStatsMIR DroppedVarStatsMF;
7270

7371
/// createPrinterPass - Get a machine function printer pass.
7472
Pass *createPrinterPass(raw_ostream &O,

llvm/include/llvm/Config/llvm-config.h.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
/* Indicate that this is LLVM compiled from the amd-gfx branch. */
1818
#define LLVM_HAVE_BRANCH_AMD_GFX
19-
#define LLVM_MAIN_REVISION 522196
19+
#define LLVM_MAIN_REVISION 522200
2020

2121
/* Define if LLVM_ENABLE_DUMP is enabled */
2222
#cmakedefine LLVM_ENABLE_DUMP

llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ def : GINodeEquiv<G_SDIV, sdiv>;
7070
def : GINodeEquiv<G_UDIV, udiv>;
7171
def : GINodeEquiv<G_SREM, srem>;
7272
def : GINodeEquiv<G_UREM, urem>;
73+
def : GINodeEquiv<G_SDIVREM, sdivrem>;
74+
def : GINodeEquiv<G_UDIVREM, udivrem>;
7375
def : GINodeEquiv<G_AND, and>;
7476
def : GINodeEquiv<G_OR, or>;
7577
def : GINodeEquiv<G_XOR, xor>;

llvm/include/llvm/Target/TargetSelectionDAG.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ def SDTIntShiftDOp: SDTypeProfile<1, 3, [ // fshl, fshr
128128
def SDTIntSatNoShOp : SDTypeProfile<1, 2, [ // ssat with no shift
129129
SDTCisSameAs<0, 1>, SDTCisInt<2>
130130
]>;
131-
def SDTIntBinHiLoOp : SDTypeProfile<2, 2, [ // mulhi, mullo, sdivrem, udivrem
132-
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisSameAs<0, 3>,SDTCisInt<0>
131+
def SDTIntBinHiLoOp : SDTypeProfile<2, 2, [ // smullohi, umullohi, sdivrem, udivrem
132+
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisSameAs<0, 3>, SDTCisInt<0>
133133
]>;
134134
def SDTIntScaledBinOp : SDTypeProfile<1, 3, [ // smulfix, sdivfix, etc
135135
SDTCisSameAs<0, 1>, SDTCisSameAs<0, 2>, SDTCisInt<0>, SDTCisInt<3>

llvm/lib/CodeGen/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ add_llvm_component_library(LLVMCodeGen
5050
DeadMachineInstructionElim.cpp
5151
DetectDeadLanes.cpp
5252
DFAPacketizer.cpp
53-
DroppedVariableStatsMIR.cpp
5453
DwarfEHPrepare.cpp
5554
EarlyIfConversion.cpp
5655
EdgeBundles.cpp

llvm/lib/CodeGen/DroppedVariableStatsMIR.cpp

Lines changed: 0 additions & 77 deletions
This file was deleted.

llvm/lib/CodeGen/MachineFunctionPass.cpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
using namespace llvm;
3333
using namespace ore;
3434

35-
static cl::opt<bool> DroppedVarStatsMIR(
36-
"dropped-variable-stats-mir", cl::Hidden,
37-
cl::desc("Dump dropped debug variables stats for MIR passes"),
38-
cl::init(false));
39-
4035
Pass *MachineFunctionPass::createPrinterPass(raw_ostream &O,
4136
const std::string &Banner) const {
4237
return createMachineFunctionPrinterPass(O, Banner);
@@ -96,15 +91,7 @@ bool MachineFunctionPass::runOnFunction(Function &F) {
9691

9792
MFProps.reset(ClearedProperties);
9893

99-
bool RV;
100-
if (DroppedVarStatsMIR) {
101-
auto PassName = getPassName();
102-
DroppedVarStatsMF.runBeforePass(PassName, &MF);
103-
RV = runOnMachineFunction(MF);
104-
DroppedVarStatsMF.runAfterPass(PassName, &MF);
105-
} else {
106-
RV = runOnMachineFunction(MF);
107-
}
94+
bool RV = runOnMachineFunction(MF);
10895

10996
if (ShouldEmitSizeRemarks) {
11097
// We wanted size remarks. Check if there was a change to the number of

llvm/unittests/CodeGen/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ add_llvm_unittest(CodeGenTests
2727
CCStateTest.cpp
2828
DIEHashTest.cpp
2929
DIETest.cpp
30-
DroppedVariableStatsMIRTest.cpp
3130
DwarfStringPoolEntryRefTest.cpp
3231
InstrRefLDVTest.cpp
3332
LowLevelTypeTest.cpp

0 commit comments

Comments
 (0)