Skip to content

Conversation

@RKSimon
Copy link
Collaborator

@RKSimon RKSimon commented Jul 3, 2025

Extend #145298 to remove the x86 combineVSelectWithLastZeros special case

WIP - still a couple of x86 regressions to address wrt unnecessary duplicated comparisons

Fixes #144513

… -> and not(Cond), x"

Extend llvm#145298 to remove the x86 combineVSelectWithLastZeros special case

WIP - still a couple of x86 regressions to address wrt unnecessary duplicated comparisons

Fixes llvm#144513
@RKSimon RKSimon force-pushed the dag-vselect-andnot branch from 05f0541 to 0336d2e Compare July 3, 2025 10:31
@RKSimon RKSimon closed this Jul 8, 2025
@RKSimon RKSimon deleted the dag-vselect-andnot branch July 8, 2025 09:29
RKSimon pushed a commit that referenced this pull request Jul 8, 2025
…d not(Cond), x (#147472)

### Summary
This patch extends the work from
[#145298](#145298) by removing
the now-unnecessary X86-specific combineVSelectWithLastZeros logic. That
combine is now correctly and more generally handled in the
target-independent combineVSelectWithAllOnesOrZeros.

This simplifies the X86 DAG combine logic and avoids duplication.

Fixes: [#144513](#144513)
Related for reference:
[#146831](#146831)
llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Jul 8, 2025
… 0, x -> and not(Cond), x (#147472)

### Summary
This patch extends the work from
[#145298](llvm/llvm-project#145298) by removing
the now-unnecessary X86-specific combineVSelectWithLastZeros logic. That
combine is now correctly and more generally handled in the
target-independent combineVSelectWithAllOnesOrZeros.

This simplifies the X86 DAG combine logic and avoids duplication.

Fixes: [#144513](llvm/llvm-project#144513)
Related for reference:
[#146831](llvm/llvm-project#146831)
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.

[DAG] Refactor X86 combineVSelectWithAllOnesOrZeros fold into a generic DAG Combine

1 participant