[PATCH] D150569: [unittests][llvm-exegesis] Remove build warnings [NFCI]
Francesco Petrogalli via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 15 06:53:52 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG930421e18c51: [unittests][llvm-exegesis] Remove build warnings [NFCI] (authored by fpetrogalli).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150569/new/
https://reviews.llvm.org/D150569
Files:
llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
llvm/unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp
Index: llvm/unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp
===================================================================
--- llvm/unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp
+++ llvm/unittests/tools/llvm-exegesis/X86/SchedClassResolutionTest.cpp
@@ -65,20 +65,20 @@
TEST_F(X86SchedClassResolutionTest, ComputeIdealizedProcResPressure_2P0) {
const auto Pressure =
- computeIdealizedProcResPressure(STI.getSchedModel(), {{P0Idx, 2}});
+ computeIdealizedProcResPressure(STI.getSchedModel(), {{P0Idx, 2, 0}});
EXPECT_THAT(Pressure, UnorderedElementsAre(Pair(P0Idx, 2.0)));
}
TEST_F(X86SchedClassResolutionTest, ComputeIdealizedProcResPressure_2P05) {
const auto Pressure =
- computeIdealizedProcResPressure(STI.getSchedModel(), {{P05Idx, 2}});
+ computeIdealizedProcResPressure(STI.getSchedModel(), {{P05Idx, 2, 0}});
EXPECT_THAT(Pressure,
UnorderedElementsAre(Pair(P0Idx, 1.0), Pair(P5Idx, 1.0)));
}
TEST_F(X86SchedClassResolutionTest, ComputeIdealizedProcResPressure_2P05_2P0156) {
const auto Pressure = computeIdealizedProcResPressure(
- STI.getSchedModel(), {{P05Idx, 2}, {P0156Idx, 2}});
+ STI.getSchedModel(), {{P05Idx, 2, 0}, {P0156Idx, 2, 0}});
EXPECT_THAT(Pressure,
UnorderedElementsAre(Pair(P0Idx, 1.0), Pair(P1Idx, 1.0),
Pair(P5Idx, 1.0), Pair(P6Idx, 1.0)));
@@ -87,7 +87,7 @@
TEST_F(X86SchedClassResolutionTest,
ComputeIdealizedProcResPressure_1P1_1P05_2P0156) {
const auto Pressure = computeIdealizedProcResPressure(
- STI.getSchedModel(), {{P1Idx, 1}, {P05Idx, 1}, {P0156Idx, 2}});
+ STI.getSchedModel(), {{P1Idx, 1, 0}, {P05Idx, 1, 0}, {P0156Idx, 2, 0}});
EXPECT_THAT(Pressure,
UnorderedElementsAre(Pair(P0Idx, 1.0), Pair(P1Idx, 1.0),
Pair(P5Idx, 1.0), Pair(P6Idx, 1.0)));
Index: llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
===================================================================
--- llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
+++ llvm/unittests/tools/llvm-exegesis/PowerPC/AnalysisTest.cpp
@@ -71,19 +71,19 @@
TEST_F(PPCAnalysisTest, ComputeIdealizedProcResPressure_2ALU) {
const auto Pressure =
- computeIdealizedProcResPressure(STI->getSchedModel(), {{ALUIdx, 2}});
+ computeIdealizedProcResPressure(STI->getSchedModel(), {{ALUIdx, 2, 0}});
EXPECT_THAT(Pressure, UnorderedElementsAre(Pair(ALUIdx, 2.0)));
}
TEST_F(PPCAnalysisTest, ComputeIdealizedProcResPressure_1ALUE) {
const auto Pressure =
- computeIdealizedProcResPressure(STI->getSchedModel(), {{ALUEIdx, 2}});
+ computeIdealizedProcResPressure(STI->getSchedModel(), {{ALUEIdx, 2, 0}});
EXPECT_THAT(Pressure, UnorderedElementsAre(Pair(ALUEIdx, 2.0)));
}
TEST_F(PPCAnalysisTest, ComputeIdealizedProcResPressure_1ALU1IPAGEN) {
- const auto Pressure =
- computeIdealizedProcResPressure(STI->getSchedModel(), {{ALUIdx, 1}, {IPAGENIdx, 1}});
+ const auto Pressure = computeIdealizedProcResPressure(
+ STI->getSchedModel(), {{ALUIdx, 1, 0}, {IPAGENIdx, 1, 0}});
EXPECT_THAT(Pressure, UnorderedElementsAre(Pair(ALUIdx, 1.0),Pair(IPAGENIdx, 1)));
}
} // namespace
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150569.522172.patch
Type: text/x-patch
Size: 3273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230515/bdee8264/attachment.bin>
More information about the llvm-commits
mailing list