[llvm-commits] [llvm] r86646 - in /llvm/trunk: lib/Transforms/Scalar/JumpThreading.cpp test/Transforms/JumpThreading/basic.ll

Chris Lattner sabre at nondot.org
Mon Nov 9 21:09:58 PST 2009


On Nov 9, 2009, at 7:08 PM, Duncan Sands wrote:

> Hi Chris,
>
>> +    Instruction *User = cast<Instruction>(U.getUser());
>> +    U = To;
>
> this assignment doesn't seem to be useful.

It is equivalent to User->setOperand(U.getOperandNo(), To)

but a lot faster :)

-Chris



More information about the llvm-commits mailing list