TableGen/CodeGenDAGPatterns: addPredicateFn only once
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 8 Oct 2018 16:53:31 +0000 (16:53 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 8 Oct 2018 16:53:31 +0000 (16:53 +0000)
commit46c91fd2331daf722bc1eca141e6b81d54734766
treef18e78a2ad89327bcac0ecd756c142112f411f13
parent8dd92482cef311312dc238936cdfeb372f68d4f5
TableGen/CodeGenDAGPatterns: addPredicateFn only once

Summary:
The predicate function is added in InlinePatternFragments, no need to
do it here. As a result, all uses of addPredicateFn are located in
InlinePatternFragments.

Test confirmed that there are no changes to generated files when
building all (non-experimental) targets.

Change-Id: I720e42e045ca596eb0aa339fb61adf6fe71034d5

Reviewers: arsenm, rampitec, RKSimon, craig.topper, hfinkel, uweigand

Subscribers: wdng, llvm-commits

Differential Revision: https://reviews.llvm.org/D51993

llvm-svn: 343977
llvm/utils/TableGen/CodeGenDAGPatterns.cpp
llvm/utils/TableGen/CodeGenDAGPatterns.h