Skip to content

Some small constraint system cleanups. #13197

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

Merged
merged 4 commits into from
Dec 2, 2017
Merged

Some small constraint system cleanups. #13197

merged 4 commits into from
Dec 2, 2017

Conversation

rudkx
Copy link
Contributor

@rudkx rudkx commented Dec 1, 2017

No description provided.

…vored types.

This allows us to eliminate some special casing around things like
parens, and allows the code to work for other code involving expressions
that are semantically neutral.
These purportedly mark that we should stop attempting fixes for a given
constraint, but in fact the only code creating these is clearly
unreachable so these serve no purpose.
…tionals.

Only record the fixes when they have made the solution to this point
successful.
It's probably harmless to record the ones for failures which later cause
us to back out in the solver, but it means we cannot easily set
breakpoints in places like recordFix and stop only in the places where
the fixes actually cause the solution to make progress.
@rudkx
Copy link
Contributor Author

rudkx commented Dec 2, 2017

@swift-ci Please smoke test

@rudkx rudkx changed the title [DO NOT MERGE] WIP: Rework IUO implementation to match the intent in SE-0054. Some small constraint system cleanups. Dec 2, 2017
@rudkx rudkx merged commit c0af43a into swiftlang:master Dec 2, 2017
@rudkx rudkx deleted the rework-iuo branch December 2, 2017 06:19
@aschwaighofer
Copy link
Contributor

https://ci.swift.org/job/oss-swift_tools-R_stdlib-RD_test-simulator/699/

utils/build-script --preset=buildbot,tools=R,stdlib=RD install_destdir="${WORKSPACE}/install" installable_package="${SWIFT_INSTALLABLE_PACKAGE}"

FAIL: Swift(macosx-x86_64) :: Sema/type_checker_perf/fast/rdar33806601.swift (7244 of 10620)
******************** TEST 'Swift(macosx-x86_64) :: Sema/type_checker_perf/fast/rdar33806601.swift' FAILED ********************
Script:
--
/Users/buildnode/jenkins/workspace/oss-swift_tools-R_stdlib-RD_test-simulator/Ninja-Release/swift-macosx-x86_64/bin/swiftc -frontend -target x86_64-apple-macosx10.9  -module-cache-path '/var/folders/_8/79jmzf2142z2xydc_01btlx00000gn/T/swift-testsuite-clang-module-cacheOpYdJG' -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -swift-version 3 -typecheck -verify -disable-objc-attr-requires-foundation-module /Users/buildnode/jenkins/workspace/oss-swift_tools-R_stdlib-RD_test-simulator/swift/validation-test/Sema/type_checker_perf/fast/rdar33806601.swift -solver-expression-time-threshold=1
--
Exit Code: 1

Command Output (stderr):
--
/Users/buildnode/jenkins/workspace/oss-swift_tools-R_stdlib-RD_test-simulator/swift/validation-test/Sema/type_checker_perf/fast/rdar33806601.swift:12:27: error: unexpected error produced: expression was too complex to be solved in reasonable time; consider breaking up the expression into distinct sub-expressions
let _: (P, P) -> Double = {

@aschwaighofer
Copy link
Contributor

I disabled the test.

http://bugs.swift.org/browse/SR-6518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants