[llvm-commits] [llvm] r171524 - in /llvm/trunk: lib/Target/X86/CMakeLists.txt lib/Target/X86/X86.h lib/Target/X86/X86.td lib/Target/X86/X86PadShortFunction.cpp lib/Target/X86/X86Subtarget.cpp lib/Target/X86/X86Subtarget.h lib/Target/X86/X86TargetMa...

Nadav Rotem nrotem at apple.com
Fri Jan 4 15:30:15 PST 2013


On Jan 4, 2013, at 3:07 PM, "Gurd, Preston" <preston.gurd at intel.com> wrote:

> 
> The reason that we decided to use a pass instead of a peephole optimization was that we felt we had to deal with control flow, which did not seem possible using peephole optimization.

Hi Preston, 

Please look at llvm::TargetInstrInfo::optimizeCompareInsr.  You could do something similar with the 'ret' instruction. 

Thanks,
Nadav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130104/ecb3aced/attachment.html>


More information about the llvm-commits mailing list