summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
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
commit886e8f35aa52b372cef2cb5a6ccbdd4f16512500 (patch)
tree3d4c651a8e2e07fa659b0b4fd7b4ca3abe86bb51 /llvm/utils/TableGen
parentb15597b59a6992454041fe17ce1fc9e60248d981 (diff)
downloadbcm5719-llvm-886e8f35aa52b372cef2cb5a6ccbdd4f16512500.tar.gz
bcm5719-llvm-886e8f35aa52b372cef2cb5a6ccbdd4f16512500.zip
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. llvm-svn: 28389
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/DAGISelEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp
index 564e194f72f..5156d9e9318 100644
--- a/llvm/utils/TableGen/DAGISelEmitter.cpp
+++ b/llvm/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::" +
OpenPOWER on IntegriCloud