[PATCH] CodeGen, SelectionDAG: Increase width of NumOperands and NumValues

David Majnemer david.majnemer at gmail.com
Fri Nov 7 01:59:17 PST 2014


Something like:
%a = type { [65536 x i8] }
store %a zeroinitializer, %a* undef

can generate an SDNode with more than USHRT_MAX results.  In this
particular case, we will end up thinking we have zero values.

When it would come time to make an SDValue, we would assert because we
wouldn't think we had any values at all.

This fixes PR21513.

N.B.  The smallest, most minimal test case I could write takes three
minutes on a very powerful machine.

http://reviews.llvm.org/D6164

Files:
  include/llvm/CodeGen/SelectionDAGNodes.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6164.15914.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141107/d20f6f42/attachment.bin>


More information about the llvm-commits mailing list