Skip to content
Commit 7cfe4165 authored by Sanjay Patel's avatar Sanjay Patel
Browse files

[InstCombine] (X != C1 && X != C2) --> (X | (C1 ^ C2)) != C2

...when C1 differs from C2 by one bit and C1 <u C2:
http://rise4fun.com/Alive/Vuo

And move related folds to a helper function. This reduces code duplication and
will make it easier to remove the scalar-only restriction as a follow-up step.

llvm-svn: 300364
parent fb71b7d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment