diff options
author | Eric Christopher <echristo@gmail.com> | 2015-02-20 08:01:52 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2015-02-20 08:01:52 +0000 |
commit | 4369c9b42cdffa63e226531885644663907f6822 (patch) | |
tree | 202344b2bfeb7ed31f50698b02666eaad85187c6 /llvm/lib/Target/X86/X86CallFrameOptimization.cpp | |
parent | 1947a9e2e208f0ad89e4d58a491021ec7bed470e (diff) | |
download | bcm5719-llvm-4369c9b42cdffa63e226531885644663907f6822.tar.gz bcm5719-llvm-4369c9b42cdffa63e226531885644663907f6822.zip |
Use the cached subtarget from the MachineFunction rather than
doing a lookup on the TargetMachine.
llvm-svn: 229995
Diffstat (limited to 'llvm/lib/Target/X86/X86CallFrameOptimization.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86CallFrameOptimization.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp index d6563c2f271..5e8d37431e1 100644 --- a/llvm/lib/Target/X86/X86CallFrameOptimization.cpp +++ b/llvm/lib/Target/X86/X86CallFrameOptimization.cpp @@ -117,7 +117,7 @@ bool X86CallFrameOptimization::isLegal(MachineFunction &MF) { // No point in running this in 64-bit mode, since some arguments are // passed in-register in all common calling conventions, so the pattern // we're looking for will never match. - const X86Subtarget &STI = MF.getTarget().getSubtarget<X86Subtarget>(); + const X86Subtarget &STI = MF.getSubtarget<X86Subtarget>(); if (STI.is64Bit()) return false; @@ -402,7 +402,7 @@ bool X86CallFrameOptimization::adjustCallSequence(MachineFunction &MF, // If PUSHrmm is not slow on this target, try to fold the source of the // push into the instruction. - const X86Subtarget &ST = MF.getTarget().getSubtarget<X86Subtarget>(); + const X86Subtarget &ST = MF.getSubtarget<X86Subtarget>(); bool SlowPUSHrmm = ST.isAtom() || ST.isSLM(); // Check that this is legal to fold. Right now, we're extremely |