Skip to content

Commit c08f80e

Browse files
committed
[X86] select.ll - add ADD/SUB identity select test cases
LowerSELECTWithCmpZero already handles "SELECT (X != 0), Y, (OR/XOR Y, Z) -> (OR/XOR Y, (AND (0 - X), Z))" - we can also handle ADD/SUB in a similar way, although SUB is more restricted as its not commutative.
1 parent ce2e386 commit c08f80e

File tree

1 file changed

+374
-6
lines changed

1 file changed

+374
-6
lines changed

0 commit comments

Comments
 (0)