[LLVMdev] Type Legalizer - Load handling problem

sanjiv gupta sanjiv.gupta at microchip.com
Tue Aug 19 08:07:39 PDT 2008


On Mon, 2008-08-18 at 08:50 -0700, Eli Friedman wrote:
> On Mon, Aug 18, 2008 at 6:31 AM,  <Sachin.Punyani at microchip.com> wrote:
> > assert(Res.getValueType() == N->getValueType(0) && N->getNumValues() == 1 &&
> > "Invalid operand expansion");
> >
> > LOAD node has two values but the assertion checks N->getNumValues() == 1
> > which is not letting us change load operation.
> 
Besides the assert, the call to
   ReplaceValueWith(SDValue(N, 0), Res); 

also looks incorrect, because the back-end lowered load will return two
values as well. 

- Sanjiv



More information about the llvm-dev mailing list