[LLVMdev] Fwd: unconditional branch folding
Yuanfang Chen
cyfmxc at gmail.com
Sun Jan 12 16:44:17 PST 2014
ops
---------- Forwarded message ----------
From: Yuanfang Chen <cyfmxc at gmail.com>
Date: Sun, Jan 12, 2014 at 7:43 PM
Subject: Re: [LLVMdev] unconditional branch folding
To: Nick Lewycky <nicholas at mxc.ca>
Thanks Nick. I found it in llvm/Transforms/Utils/Local.h, it's called
MergeBasicBlockIntoOnlyPred
On Sat, Dec 14, 2013 at 6:08 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> Yuanfang Chen wrote:
>>
>> Hello guys,
>>
>> Do we have a pass to do unconditional branch folding except the one in
>> Codegen? I checked in the lib/Transforms/Scalar, did not see any
>> promising one.
>
>
> SimplifyCFG? The pass is lib/Transforms/Scalar/SimplifyCFGPass.cpp but the
> logic is really in lib/Transforms/Utils/SimplifyCFG.cpp .
>
> Nick
More information about the llvm-dev
mailing list