[PredicateInfo] Fold PredicateWithCondition into PredicateBase (NFC).
authorFlorian Hahn <flo@fhahn.com>
Sat, 18 Jul 2020 14:59:51 +0000 (15:59 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sat, 18 Jul 2020 15:21:56 +0000 (16:21 +0100)
commit4b19cccbb5d8d77750da96cef2daefa6c28b0e37
treeeea3d59e0e73546fde8bf8cd08b66e6e3c87fdd5
parent8d487668d09fb0e4e54f36207f07c1480ffabbfd
[PredicateInfo] Fold PredicateWithCondition into PredicateBase (NFC).

Each concrete instance of a predicate has a condition (also noted in the
original PredicateBase comment) and to me it seems like there is no
clear benefit of having both PredicateBase and PredicateWithCondition
and they can be folded together.

Reviewers: nikic, efriedma

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D84089
llvm/include/llvm/Transforms/Utils/PredicateInfo.h
llvm/lib/Transforms/Scalar/NewGVN.cpp