OSDN Git Service

[InstCombine] combine foldAndOfFCmps and foldOrOfFcmps; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sat, 2 Sep 2017 17:53:33 +0000 (17:53 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 2 Sep 2017 17:53:33 +0000 (17:53 +0000)
commit0d5e78e0311727f6dd50697d44a6b0e1ac1713ce
tree23a794507e2ea3b9c421c4639cb36a7e1b9f0e9a
parentb74923ccea24648db103a862aecad9d7b5fa529d
[InstCombine] combine foldAndOfFCmps and foldOrOfFcmps; NFCI

In addition to removing chunks of duplicated code, we don't
want these to diverge. If there's a fold for one, there
should be a fold of the other via DeMorgan's Laws.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312420 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
lib/Transforms/InstCombine/InstCombineInternal.h