From: Matt Arsenault Date: Thu, 29 Aug 2019 19:10:12 +0000 (-0400) Subject: TableGen: Remove assert that pattern results match input number X-Git-Tag: llvmorg-11-init~4842 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f9f42dbc5f54bbee6785a62acc8cd7e5ed12ea5;p=platform%2Fupstream%2Fllvm.git TableGen: Remove assert that pattern results match input number AMDGPU has some atomic instructions that do not return the previous result, and can only be selected if there are no uses. The source pattern will only match if the use is empty, so it should be safe to discard the result. --- diff --git a/llvm/utils/TableGen/DAGISelMatcherGen.cpp b/llvm/utils/TableGen/DAGISelMatcherGen.cpp index 49c09c7..6a86868 100644 --- a/llvm/utils/TableGen/DAGISelMatcherGen.cpp +++ b/llvm/utils/TableGen/DAGISelMatcherGen.cpp @@ -1047,7 +1047,6 @@ void MatcherGen::EmitResultCode() { } } - assert(Ops.size() >= NumSrcResults && "Didn't provide enough results"); SmallVector Results(Ops); // Apply result permutation.