[InstSimplify] add logic fold for 'or'
authorSanjay Patel <spatel@rotateright.com>
Tue, 30 Nov 2021 18:59:39 +0000 (13:59 -0500)
committerSanjay Patel <spatel@rotateright.com>
Tue, 30 Nov 2021 19:08:54 +0000 (14:08 -0500)
commit4b30076f16fc55891da8952bda3f2d81dbeec5a5
tree22a0be22da816140ecd6dc45f9e11d085be27706
parentc49ef1448d1779385e0e0ea88b1d8343f4830a79
[InstSimplify] add logic fold for 'or'

https://alive2.llvm.org/ce/z/4PaPDy

There's a related fold where the inner 'or' is replaced by 'and',
but that needs to be more careful about matching a 'not'.
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/or.ll