[LLVMdev] Assert on Large Zeroinitializer Store

John Criswell criswell at illinois.edu
Wed Aug 24 11:41:56 PDT 2011


Dear All,

I currently have one of my transforms creating the following store 
instruction:

store [65536 x i8] zeroinitializer, [65536 x i8]* %buf.i, align 16

... which causes the SelectionDAG code to assert out:

Assertion failed: (ResNo < NumValues && "Illegal result number!"), 
function getValueType, file 
/Users/criswell/src/llvm/include/llvm/CodeGen/SelectionDAGNodes.h, line 589.

Should LLVM be able to code generate the above store instruction?  If 
not, how large a value can a store instruction store to memory without 
triggering problems in the code generator?

-- John T.




More information about the llvm-dev mailing list