[LLVMdev] Type Legalizer - Load handling problem

Eli Friedman eli.friedman at gmail.com
Mon Aug 18 08:50:45 PDT 2008


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.

I don't really know the right answer here, but custom-legalizing to a
backend-specific load operation should be feasible, although it's a
bit messy.

-Eli



More information about the llvm-dev mailing list