You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oli-obk opened this issue
Mar 15, 2019
· 0 comments
· Fixed by #59178
Labels
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Basically the type_flags method should be manually inlined into its use sites (and operations that are happening twice should be deduplicated)
The text was updated successfully, but these errors were encountered:
oli-obk
added
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
labels
Mar 15, 2019
Revert the `LazyConst` PR
The introduction of `LazyConst` did not actually achieve the code simplicity improvements that were the main reason it was introduced. Especially in the presence of const generics, the differences between the "levels of evaluatedness" of a constant become less clear. As it can be seen by the changes in this PR, further simplifications were possible by folding `LazyConst` back into `ConstValue`. We have been able to keep all the advantages gained during the `LazyConst` refactoring (like `const_eval` not returning an interned value, thus making all the `match` code simpler and more performant).
fixes#59209
r? @eddyb@varkor
C-cleanupCategory: PRs that clean code up or issues documenting cleanup.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
Related discussion in #59178 (comment)
Basically the
type_flags
method should be manually inlined into its use sites (and operations that are happening twice should be deduplicated)The text was updated successfully, but these errors were encountered: