[LLVMdev] Disabling Branch Folding in IfConversion

Ronaldo Ferreira ronaldorferreira at gmail.com
Thu Oct 23 07:42:58 PDT 2014


Hi,

I tried to disable the branch folding called from IfConversion, which is
guarded by the command line flag IfCvtBranchFold defined in the
IfConversion.cpp file. However, there are two calls to the
BranchFolder::OptimizeFunction in the IfConversion pass, which one of them
is not guarded by IfCvtBranchFold. I created a new command line flag
guarding the two calls to OptimizeFunction just to check, and with the new
flag the Branch Folding is not invoked.

Is this a bug? Shouldn't the two calls to OptimizeFunction be guarded by
IfCvtBranchFold?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141023/6a0005e5/attachment.html>


More information about the llvm-dev mailing list