Skip to content
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

Codegen JVM: Use IXOR to optimize materialization of BooleanNegation #5299

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scaventz
Copy link
Contributor

@scaventz scaventz commented May 11, 2024

Fixes: KT-65357

@scaventz scaventz force-pushed the KT-65357-negatedStringCompare.kt branch from e246fc4 to a8b7891 Compare May 14, 2024 08:36
value.materializeAt(Type.BOOLEAN_TYPE, codegen.context.irBuiltIns.booleanType, false)
mv.iconst(1)
mv.xor(Type.INT_TYPE)
StackValue.coerce(Type.BOOLEAN_TYPE, target, mv)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the fact that you're not using irTarget here seems suspicious, because it could be an inline class type. wasn't there a 5-argument version of coerce?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that possible? Can you please give me an example where irTarget is an inline class type?

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