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

CSE should not lift out all true predicate from load/store #1759

Merged
merged 2 commits into from
Jan 20, 2017

Conversation

psuriana
Copy link
Contributor

Bug fix for Codegen OpenCL correctness_mul_div_mod test. If the load/store predicate is trivially true, CSE shouldn't lift it out from the expr.

@@ -58,11 +58,6 @@ bool should_extract(Expr e) {
return !is_const(a->stride);
}

if (const Call *a = e.as<Call>()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we still shouldn't lift loads out of address_of. address_of is broken if it's operand isn't a Load. predicated load/store isn't the only possible use of this...

Copy link
Contributor

@dsharletg dsharletg left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@dsharletg dsharletg merged commit a9d7151 into master Jan 20, 2017
@jrk jrk deleted the predicated_store_load_cse_bugs branch April 20, 2017 01:43
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.

None yet

2 participants