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

Remove unused 'external_buffers' member in Codegen_Xtensa #7466

Open
wants to merge 1 commit into
base: xtensa-codegen
Choose a base branch
from

Conversation

steven-johnson
Copy link
Contributor

No description provided.

@@ -786,9 +786,6 @@ void CodeGen_Xtensa::visit(const Load *op) {
native_lanes = bytes_in_vector / 2;
}
bool is_aligned_load = (op->alignment.modulus % native_lanes == 0) && (op->alignment.remainder % native_lanes == 0);
if (external_buffers.count(op->name) > 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Ugh, this seems like it was a legit bug. I think if (external_buffers.count(op->name) > 0) should be replaced by if (op->param.defined()) .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yikes, ok, lets hold off on this PR -- I'll let you choose how to clean this up, you are much closer to this code than I

@@ -811,7 +808,7 @@ void CodeGen_Xtensa::visit(const Load *op) {
// } else {
string id_index = print_expr(op->index);
// Is not allocated on the heap and is not a buffer
bool is_tcm = !(heap_allocations.contains(name) || external_buffers.count(op->name) > 0);
Copy link
Member

Choose a reason for hiding this comment

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

Same here and below.

@steven-johnson
Copy link
Contributor Author

Did we ever decide if this needed attention?

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