[PATCH] Fix wrong number of operands error with default operands

Matt Arsenault Matthew.Arsenault at amd.com
Tue Nov 11 18:47:32 PST 2014


 If a value was provided for some of the defaulted operands,
this wouldn't work.
    
e.g. inst x, y, defaulted_z, defaulted_w
    
If a value was provided for z and / or w,
these overriding value operands would be skipped,
never incrementing ChildNo and would hit the "too many operands"
error below. Only check for d

http://reviews.llvm.org/D6225

Files:
  utils/TableGen/CodeGenDAGPatterns.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6225.16071.patch
Type: text/x-patch
Size: 1418 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141112/d083fd3a/attachment.bin>


More information about the llvm-commits mailing list