[X86] Make hasFP constant time
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 4 Jan 2016 04:49:41 +0000 (04:49 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 4 Jan 2016 04:49:41 +0000 (04:49 +0000)
commitf124911f7a6ec79c44e71a3dccac8733c8ded458
tree50109b396fe557cd062aefba2dab6816bb3dcf6e
parent82e76d50b1e550cfda3c49ba031205b50f1b283e
[X86] Make hasFP constant time

We need a frame pointer if there is a push/pop sequence after the
prologue in order to unwind the stack.  Scanning the instructions to
figure out if this happened made hasFP not constant-time which is a
violation of expectations.  Let's compute this up-front and reuse that
computation when we need it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256730 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/Target/X86/X86FrameLowering.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h
lib/Target/X86/X86InstrInfo.cpp