HomePhabricator

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

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

Details

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