SimplifyCFG is mostly doing canonicalization. It does some obvious
if-conversion. More general if-conversions require target info so it's done
in MI passes. LLVM has an early if-converter which uses machinetracemetric and a
late one after regalloc.
Evan
Sent from my iPad
> On Nov 11, 2013, at 2:49 AM, Jonas Wagner <jonas.wagner at epfl.ch>
wrote:
>
> Hi,
>>
>> Sorry to dig up an old thread but I wondered what the status of
>> if-conversion in LLVM is. Has any work been done towards handling this
as a
>> transform pass on the IR?
>
> As far as I know, some if-conversion is done in SimplifyCFG: Have a look at
the SpeculativelyExecuteBB function in lib/Transforms/Utils/SimplifyCFG.cpp.
>
> Cheers,
> Jonas
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20131112/ca5ee3b9/attachment.html>