[llvm-dev] visitPHINode not executed

Alberto Barbaro via llvm-dev llvm-dev at lists.llvm.org
Sat Mar 30 00:56:34 PDT 2019


Hi all,
I'm still playing with the interpreter and I noticed that phi instruction
are not relying on visitPHINode. I have seen that within the source code is
mentioned that those instructions were handle previously. Is there a way to
"force" the interpreter to call visitPHINode method anyway?

My IR is:

.preheader.i:                                     ; preds = %255
  %257 = bitcast i32* %buf4.1.lcssa.i to i8*
  br label %258

; <label>:258:                                    ; preds = %258,
%.preheader.i
  %.12.i = phi i8* [ %259, %258 ], [ %257, %.preheader.i ]
  %.3.i = phi i64 [ %268, %258 ], [ %.2.lcssa.i, %.preheader.i ]
  %c.3.i = phi i32 [ %267, %258 ], [ %c.2.lcssa.i, %.preheader.i ]
  %259 = getelementptr inbounds i8, i8* %.12.i, i64 1

I'm sure that the 3 phi instruction within the block %258 are not handled
within visitPHINode.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190330/ae9338ab/attachment.html>


More information about the llvm-dev mailing list