diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-02-21 19:35:07 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-02-21 19:35:07 +0000 |
| commit | 5628a34dc454dff53d433873f3e3b842b336a0c9 (patch) | |
| tree | 78bdac41805b55449c9d97390bac6bf489cdabf0 /include/llvm/CodeGen/DAGISelHeader.h | |
| parent | 6c88e471582692693460e97e2cc2735c84e10c45 (diff) | |
| download | external_llvm-5628a34dc454dff53d433873f3e3b842b336a0c9.zip external_llvm-5628a34dc454dff53d433873f3e3b842b336a0c9.tar.gz external_llvm-5628a34dc454dff53d433873f3e3b842b336a0c9.tar.bz2 | |
Relax an assertion a bit. We allow replacing things like
<4 x i32> with <4 x float> values if they end up the same
register class. This gets us up to 231 passes on the ppc
tests (only 7 fails).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96750 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/DAGISelHeader.h')
| -rw-r--r-- | include/llvm/CodeGen/DAGISelHeader.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/DAGISelHeader.h b/include/llvm/CodeGen/DAGISelHeader.h index 42583ec..4ed662f 100644 --- a/include/llvm/CodeGen/DAGISelHeader.h +++ b/include/llvm/CodeGen/DAGISelHeader.h @@ -716,7 +716,9 @@ SDNode *SelectCodeCommon(SDNode *NodeToMatch, const unsigned char *MatcherTable, unsigned ResSlot = MatcherTable[MatcherIndex++]; assert(ResSlot < RecordedNodes.size() && "Invalid CheckSame"); SDValue Res = RecordedNodes[ResSlot]; - assert(NodeToMatch->getValueType(i) == Res.getValueType() && + assert((NodeToMatch->getValueType(i) == Res.getValueType() || + NodeToMatch->getValueType(i).getSizeInBits() == + Res.getValueType().getSizeInBits()) && "invalid replacement"); ReplaceUses(SDValue(NodeToMatch, i), Res); } |
