Skip to content

CPP: No longer constant fold (most) IR. #14210

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

Draft
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

alexet
Copy link
Contributor

@alexet alexet commented Sep 13, 2023

No description provided.

@alexet alexet changed the title CPP: BNo longer constant fold (most) IR. CPP: No longer constant fold (most) IR. Sep 13, 2023
@@ -240,13 +240,18 @@
*/
private predicate controlsBlock(BasicBlock controlled, boolean testIsTrue) {
exists(IRBlock irb |
forex(IRGuardCondition inst | inst = ir | inst.controls(irb, testIsTrue)) and
irb.getAnInstruction().getAst().(ControlFlowNode).getBasicBlock() = controlled and
ir.(IRGuardCondition).controls(irb, testIsTrue) and

Check warning

Code scanning / CodeQL

Redundant cast

Redundant cast to [IRGuardCondition](1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant