Skip to content

[Codegen] Fix compiler errors in LinkTuningSpecsPass#23169

Merged
kuhar merged 1 commit intoiree-org:mainfrom
kuhar:link-tuning-specs-fixes
Jan 16, 2026
Merged

[Codegen] Fix compiler errors in LinkTuningSpecsPass#23169
kuhar merged 1 commit intoiree-org:mainfrom
kuhar:link-tuning-specs-fixes

Conversation

@kuhar
Copy link
Member

@kuhar kuhar commented Jan 16, 2026

Pass booleans instead of nullptr; the former confuses some compilers because both bool and Value are constructible with nullptr.

Also clean up comments and needlessly complicated code just above.

Fixes: #23164

Pass booleans instead of `nullptr`; the former confuses some compilers
because both `bool` and `Value` are constructible with `nullptr`.

Also clean up comments and needlesly complicated code just above.
@kuhar kuhar force-pushed the link-tuning-specs-fixes branch from c5ee902 to 308f126 Compare January 16, 2026 14:44
Comment on lines +412 to +413
llvm::append_range(mergedMatchers, foreachMatchOp.getMatchers());
llvm::append_range(mergedActions, foreachMatchOp.getActions());
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is the sorting change intentional? (zipped -> not zipped).

Copy link
Member Author

@kuhar kuhar Jan 16, 2026

Choose a reason for hiding this comment

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

I don't understand. There's no difference AFAICT.

Copy link
Collaborator

Choose a reason for hiding this comment

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

oh sorry, I misread. Thought we were appending to the same vector, but those are two distinct vectors.

@bjacob bjacob self-requested a review January 16, 2026 14:59
Copy link
Contributor

@bangtianliu bangtianliu left a comment

Choose a reason for hiding this comment

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

Thanks

@kuhar kuhar enabled auto-merge (squash) January 16, 2026 15:11
@kuhar kuhar merged commit f6fdbd5 into iree-org:main Jan 16, 2026
52 of 55 checks passed
keshavvinayak01 pushed a commit that referenced this pull request Jan 27, 2026
Pass booleans instead of `nullptr`; the former confuses some compilers
because both `bool` and `Value` are constructible with `nullptr`.

Also clean up comments and needlessly complicated code just above.

Fixes: #23164
Signed-off-by: Keshav Vinayak Jha <keshavvinayakjha@gmail.com>
MaheshRavishankar pushed a commit to MaheshRavishankar/iree that referenced this pull request Feb 24, 2026
Pass booleans instead of `nullptr`; the former confuses some compilers
because both `bool` and `Value` are constructible with `nullptr`.

Also clean up comments and needlessly complicated code just above.

Fixes: iree-org#23164
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.

implicit conversion of nullptr constant to 'bool'

3 participants