HomePhabricator

[X86] Fold cmpeq/ne(or(X,Y),X) --> cmpeq/ne(and(~X,Y),0) on non-BMI targets…

Authored by RKSimon on Apr 9 2021, 8:10 AM.

Description

[X86] Fold cmpeq/ne(or(X,Y),X) --> cmpeq/ne(and(~X,Y),0) on non-BMI targets (PR44136)

Followup to D100177, enable the fold for non-BMI targets as well.

Details

Committed
RKSimonApr 9 2021, 8:11 AM
Parents
rGb7578f9d5a46: [RGT] Tweak test so assertion is always executed
Branches
Unknown
Tags
Unknown