Skip to content

Conversation

MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP commented Nov 18, 2024

This fixes the inconsistencies highlighted in #18013 by generating the IR for int-to-bool conversions as part of IR generation. There are three places where we need to do something (based on grep'ing for Opcode::LogicalNot and Opcode::ConditionalBranch):

  • When translating branching points
  • When translating NotExpr
  • When translating ?: with two operands

Commit-by-commit review recommended.

@github-actions github-actions bot added the C++ label Nov 18, 2024
@MathiasVP MathiasVP added the no-change-note-required This PR does not need a change note label Nov 18, 2024
@MathiasVP MathiasVP force-pushed the generate-int-to-bool-conversion-instructions branch 2 times, most recently from 7e13550 to 92ac5f6 Compare November 20, 2024 13:48
@MathiasVP MathiasVP force-pushed the generate-int-to-bool-conversion-instructions branch from 92ac5f6 to 2dc34c7 Compare November 20, 2024 13:58
@MathiasVP MathiasVP changed the title C++: Generate int-to-bool conversion instruction in C code C++: Generate int-to-bool conversion instructions in C code Nov 20, 2024
@MathiasVP MathiasVP force-pushed the generate-int-to-bool-conversion-instructions branch from 2dc34c7 to c9b478b Compare November 20, 2024 14:55
@MathiasVP MathiasVP force-pushed the generate-int-to-bool-conversion-instructions branch from c9b478b to 9d6deb2 Compare January 10, 2025 21:28
@MathiasVP MathiasVP force-pushed the generate-int-to-bool-conversion-instructions branch 5 times, most recently from 2bccb81 to 182bbba Compare January 13, 2025 15:11
@MathiasVP MathiasVP force-pushed the generate-int-to-bool-conversion-instructions branch from 182bbba to c5da44f Compare January 13, 2025 15:59
@MathiasVP
Copy link
Contributor Author

Superseded by #18490

@MathiasVP MathiasVP closed this Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant