summaryrefslogtreecommitdiff
path: root/utils/TableGen/DAGISelEmitter.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-05-19 07:24:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-05-19 07:24:32 +0000
commitd15531b43024a1cbe5bb3d7318d72f54d93cda52 (patch)
tree03190359cdf3fc51001b11195bd60978726cdae2 /utils/TableGen/DAGISelEmitter.cpp
parentdc124a234a02ea6fc1061a51ade1bb7b817ddb61 (diff)
downloadllvm-d15531b43024a1cbe5bb3d7318d72f54d93cda52.tar.gz
llvm-d15531b43024a1cbe5bb3d7318d72f54d93cda52.tar.bz2
llvm-d15531b43024a1cbe5bb3d7318d72f54d93cda52.tar.xz
Now that iPTR is a fully resolved type. We end up losing the type check for
patterns that look like this: def : Pat<(i32 (X86Wrapper tconstpool :$dst)), (MOV32ri tconstpool :$dst)>; InsertOneTypeCheck should copy the type from the resolved pattern to the unresolved one as long as there types are different. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.cpp')
-rw-r--r--utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp
index 564e194f72..5156d9e931 100644
--- a/utils/TableGen/DAGISelEmitter.cpp
+++ b/utils/TableGen/DAGISelEmitter.cpp
@@ -2808,7 +2808,7 @@ public:
bool InsertOneTypeCheck(TreePatternNode *Pat, TreePatternNode *Other,
const std::string &Prefix) {
// Did we find one?
- if (!Pat->hasTypeSet()) {
+ if (Pat->getExtTypes() != Other->getExtTypes()) {
// Move a type over from 'other' to 'pat'.
Pat->setTypes(Other->getExtTypes());
emitCheck(Prefix + ".Val->getValueType(0) == MVT::" +