summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-02-25 00:03:03 +0000
committerChris Lattner <sabre@nondot.org>2010-02-25 00:03:03 +0000
commit2a1263b1e1d1bc1ef1f1cd834b6e3ca4b82daea7 (patch)
tree36d36e6cc462dddb45323bdf862bc06008a7892b /utils
parent3dc9b4872b28016b38ce31fa4356e17c96420579 (diff)
downloadllvm-2a1263b1e1d1bc1ef1f1cd834b6e3ca4b82daea7.tar.gz
llvm-2a1263b1e1d1bc1ef1f1cd834b6e3ca4b82daea7.tar.bz2
llvm-2a1263b1e1d1bc1ef1f1cd834b6e3ca4b82daea7.tar.xz
add a fixme for an experiment that defeated me for the time being.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelMatcherGen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/DAGISelMatcherGen.cpp b/utils/TableGen/DAGISelMatcherGen.cpp
index 9727c5f0dd..c070e442db 100644
--- a/utils/TableGen/DAGISelMatcherGen.cpp
+++ b/utils/TableGen/DAGISelMatcherGen.cpp
@@ -490,6 +490,10 @@ void MatcherGen::EmitMatchCode(const TreePatternNode *N,
void MatcherGen::EmitMatcherCode() {
// If the pattern has a predicate on it (e.g. only enabled when a subtarget
// feature is around, do the check).
+ // FIXME: This should get emitted after the match code below to encourage
+ // sharing. This can't happen until we get an X86ISD::AddrMode node made by
+ // dag combine, eliminating the horrible side-effect-full stuff from
+ // X86's MatchAddress.
if (!Pattern.getPredicateCheck().empty())
AddMatcherNode(new
CheckPatternPredicateMatcherNode(Pattern.getPredicateCheck()));