[llvm] [CodeGen][MISched] Handle empty sized resource usage. (PR #75951)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 05:48:30 PST 2024
================
@@ -20,9 +20,10 @@ TEST(ResourceSegmentsDeath, FullOverwrite) {
EXPECT_DEATH(X.add({15, 18}), "A resource is being overwritten");
}
-TEST(ResourceSegmentsDeath, ZeroSizeIntervalsNotAllowed) {
+TEST(ResourceSegmentsDeath, ZeroSizeCuttoffAllowed) {
auto X = ResourceSegments({{10, 20}});
- EXPECT_DEATH(X.add({20, 30}, 0), "0-size interval history has no use.");
+ X.add({20, 30}, 0);
----------------
michaelmaitland wrote:
yes, thanks for catching this. restored to original test.
https://github.com/llvm/llvm-project/pull/75951
More information about the llvm-commits
mailing list