]> granicus.if.org Git - llvm/commit
[InstCombine] clean up matchDeMorgansLaws(); NFCI
authorSanjay Patel <spatel@rotateright.com>
Tue, 9 May 2017 20:05:05 +0000 (20:05 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 9 May 2017 20:05:05 +0000 (20:05 +0000)
commitcf5da38c84393d7875273372ac3bc6d09320e56e
tree3fc522eef5b666d311623647a795c9b1ac14e480
parentbcfd2ccde0fc090e2b9da9228170542f644453b3
[InstCombine] clean up matchDeMorgansLaws(); NFCI

The motivation for getting rid of dyn_castNotVal is to allow fixing:
https://bugs.llvm.org/show_bug.cgi?id=32706

So this was supposed to be functional-change-intended for the case
of inverting constants and applying DeMorgan. However, I can't find
any cases where that pattern will actually get to matchDeMorgansLaws()
because we have other folds in visitAnd/visitOr that do the same
thing. So this ends up just being a clean-up patch with slight efficiency
improvement, but no-functional-change-intended.

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