Skip to content

Conversation

topperc
Copy link
Collaborator

@topperc topperc commented Sep 5, 2025

None of the callers do anything with the pointer other than check for null or equality. We can use bool to accomplish the same thing.

…. NFC

None of the callers do anything with the pointer other than check
for null or equality. We can use bool to accomplish the same thing.
Copy link
Collaborator

@preames preames left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@lukel97 lukel97 left a comment

Choose a reason for hiding this comment

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

LGTM. I presume the original intention was to use the return values to cache expansions, but I don't think that ever got implemented. We can probably also rename CachingVPExpander -> VPExpander

@topperc
Copy link
Collaborator Author

topperc commented Sep 6, 2025

LGTM. I presume the original intention was to use the return values to cache expansions, but I don't think that ever got implemented. We can probably also rename CachingVPExpander -> VPExpander

That was my guess too but the replaceOperation call feels like almost a better place to do the caching anyway.

@topperc topperc merged commit 7896ee7 into llvm:main Sep 6, 2025
11 checks passed
@topperc topperc deleted the pr/expand-predication-bool branch September 6, 2025 05:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants