-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[test] Disable makeAllowedFCmpRegion due to taking too long #111056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This was added in llvm#110082. It takes 32s in an optimized build of LLVM, and doesn't finish after multiple minutes in an -O0 build. It's iterating all possible fp values 3 levels deep. Disable until the test is fixed to not take so much time.
@llvm/pr-subscribers-llvm-ir Author: Arthur Eubanks (aeubanks) ChangesThis was added in #110082. It takes 32s in an optimized build of LLVM, and doesn't finish after multiple minutes in an -O0 build. It's iterating all possible fp values 3 levels deep. Disable until the test is fixed to not take so much time. Full diff: https://github.com/llvm/llvm-project/pull/111056.diff 1 Files Affected:
diff --git a/llvm/unittests/IR/ConstantFPRangeTest.cpp b/llvm/unittests/IR/ConstantFPRangeTest.cpp
index 17a08207fe1ba0..ae0ea8069fff5f 100644
--- a/llvm/unittests/IR/ConstantFPRangeTest.cpp
+++ b/llvm/unittests/IR/ConstantFPRangeTest.cpp
@@ -443,6 +443,9 @@ TEST_F(ConstantFPRangeTest, MismatchedSemantics) {
#endif
TEST_F(ConstantFPRangeTest, makeAllowedFCmpRegion) {
+ // TODO: reenable once test is fixed to run more quickly.
+ GTEST_SKIP();
+
for (auto Pred : FCmpInst::predicates()) {
EnumerateConstantFPRanges(
[Pred](const ConstantFPRange &CR) {
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking of guarding this under NDEBUG, but 32s in Release sounds too much.
I have sped up the test run from 30.22s -> 10.59s by ignoring the payload in NaN values. Is it acceptable? |
What about the debug build? If it is 3 times faster, it would still be more than 2 and a half minutes, which is still too long. |
I don't have enough space to test the debug build. But even if I disable this test, it still takes 10.58s to run the other existing unit tests. |
I tried it and it takes 64 seconds in Debug. The next slowest one is |
The fix has been landed in 856774d. |
IRTests used to take 57s for 782 tests and it now takes 2m2s for 783 tests. This is more than 100% increase just from one test, so it is still an issue for the Debug build. |
I am sorry I cannot make it faster on debug build. |
NDEBUG won't catch debug build, and this should still run in rel + asserts. EXPENSIVE_CHECKS maybe? Maybe there is something else to speed it up? |
With debug build:
Please give me one more day to do some profiling.
Setting |
I cannot make it faster. I tried to cache the result of
How about using llvm-project/llvm/lib/Support/CommandLine.cpp Lines 2501 to 2542 in e6549b8
|
…ECKS` (#111276) Addresses comment #111056 (comment).
This was added in #110082. It takes 32s in an optimized build of LLVM, and doesn't finish after multiple minutes in an -O0 build. It's iterating all possible fp values 3 levels deep. Disable until the test is fixed to not take so much time.