aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-07-27 06:36:49 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-07-27 06:36:49 +0000
commitb2c121ac14707db27d73169dab6c5d8592709843 (patch)
treeb45ecd4e9858d09420e78c460fb05a2a2795ec22 /utils
parent55b5053b8e22cf165d1f0ce3aa9a04707e368a15 (diff)
downloadexternal_llvm-b2c121ac14707db27d73169dab6c5d8592709843.zip
external_llvm-b2c121ac14707db27d73169dab6c5d8592709843.tar.gz
external_llvm-b2c121ac14707db27d73169dab6c5d8592709843.tar.bz2
Let each target specific isel provide routine to check if a chain producing node is foldable by another.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29335 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 8a62ed8..c194c47 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -2280,14 +2280,8 @@ public:
PInfo.hasProperty(SDNodeInfo::SDNPHasChain) ||
PInfo.hasProperty(SDNodeInfo::SDNPInFlag) ||
PInfo.hasProperty(SDNodeInfo::SDNPOptInFlag))
- if (PInfo.getNumOperands() > 1) {
- emitCheck("!isNonImmUse(" + ParentName + ".Val, " + RootName +
- ".Val)");
- } else {
- emitCheck("(" + ParentName + ".getNumOperands() == 1 || !" +
- "isNonImmUse(" + ParentName + ".Val, " + RootName +
- ".Val))");
- }
+ emitCheck("IsFoldableBy(" + RootName + ".Val, " + ParentName +
+ ".Val)");
}
}