[LLVMdev] Adding Value to use_list of instruction

Eli Friedman eli.friedman at gmail.com
Thu Aug 2 16:33:44 PDT 2012


On Thu, Aug 2, 2012 at 2:56 PM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> I have a new block with new PHI instructions. I addIncoming for the PHIs but
> this apparently doesn't update the use list, which I am trying to use later
> on to update any instructions who are no longer dominated.

addIncoming will automatically update the use-list for the value in
question, as will building a new instruction, changing an operand of
an existing instruction.  If you're seeing a use-list which appears to
be out-of-date, you're probably doing something else wrong.

-Eli



More information about the llvm-dev mailing list