<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 7/6/11 2:06 PM, Griffin Wright wrote:
    <blockquote
cite="mid:CAAT0rdeu-nFEYBC_VcfRpi-sDo8s6KH6Dd3vBOLBrvRmLcS6Tw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      Hello,<br>
      <br>
      I'm doing some Def/Use analysis, and I'm hung up on one tricky
      spot.  The BB in question is attached.  Ignore the red.<br>
      <br>
      The issue is that '%13 = load...' instruction does not show up as
      a Use for the '%scevgep25' definition, and I feel like it should. 
      Instead, it shows up as a Use for '%iftmp.55.0 = select...',
      though Operand(0) for this '%13 = load' instruction [listed as a
      Use for '%iftmp.55.0 = select...'] is reported as the %scevgep25
      instruction, which is correct.<br>
    </blockquote>
    <br>
    I'm not understanding all of the details of the behavior you're
    describing, but I agree that the %13 load should be a use of
    %scevgep25 and that the select is a use of %14 and %15.<br>
    <br>
    How are you iterating over the uses of %scevgep25?  Are you removing
    or inserting instructions while iterating over the uses, thereby
    potentially invalidating the use_iterator?  Invalidating the
    use_iterator would be my first guess.<br>
    <br>
    -- John T.<br>
    <br>
    <blockquote
cite="mid:CAAT0rdeu-nFEYBC_VcfRpi-sDo8s6KH6Dd3vBOLBrvRmLcS6Tw@mail.gmail.com"
      type="cite">
      <br>
      Sorry if that was a bit convoluted.  Essentially, it seems that
      'getelementptr' instructions with their Use's instructions being
      (direct or indirect)operands to 'select' instructions have their
      Uses show up as Uses for the select only and not for the
      getelementptr instruction.<br>
      <br>
      Does anyone have any idea why this might be happening?  All the
      other def/use information I get seems correct.  <br>
      <br>
      Thanks,<br>
      Griffin<br>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>