HomePhabricator

[DAGCombine] Improve select (not Cond), N1, N2 -> select Cond, N2, N1 fold

Authored by RKSimon on Mar 6 2019, 10:52 AM.

Description

[DAGCombine] Improve select (not Cond), N1, N2 -> select Cond, N2, N1 fold

Move the x86 combine from D58974 into the DAGCombine VSELECT code and update the SELECT version to use the isBooleanFlip helper as well.

Requested by @spatel on D59006

llvm-svn: 355533

Details

Committed
RKSimonMar 6 2019, 10:52 AM
Parents
rG417f8c5be4d0: [PowerPC] Use real pointers instead of undef
Branches
Unknown
Tags
Unknown