[LLVMdev] Question regarding ReplaceValueWith and ReplaceNodeResults
pranavb at codeaurora.org
Sun Sep 2 00:10:01 PDT 2012
> as well as what Eli said, ReplaceNodeResults requires (IIRC) the new node
> have the same type as the old node, which doesn't seem to be the case
Are you sure ? I see ReplaceNodeResults being called from functions such as
CustomWidenLowerNode and CustomLowerNode.
In the former, we are clearly expecting a change in type, aren't we? Even in
the latter, ReplaceNodeResults is called only when the type of the result
is not legal.
Otherwise, the latter calls LowerOperationWrapper.
Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev