Skip to content
  • Nadav Rotem's avatar
    Revert revision 171524. Original message: · 478b6a47
    Nadav Rotem authored
    URL: http://llvm.org/viewvc/llvm-project?rev=171524&view=rev
    Log:
    The current Intel Atom microarchitecture has a feature whereby when a function
    returns early then it is slightly faster to execute a sequence of NOP
    instructions to wait until the return address is ready,
    as opposed to simply stalling on the ret instruction
    until the return address is ready.
    
    When compiling for X86 Atom only, this patch will run a pass, called
    "X86PadShortFunction" which will add NOP instructions where less than four
    cycles elapse between function entry and return.
    
    It includes tests.
    
    Patch by Andy Zhang.
    
    llvm-svn: 171603
    478b6a47
Loading