aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/X86/X86TargetMachine.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-03-30 15:41:12 +0000
committerNirav Dave <niravd@google.com>2016-03-30 15:41:12 +0000
commit8dd66e5753bcff1a7ea6bd217db0a94c6cb98585 (patch)
treecdbf1733fa153f3d2ee5afbec8bb050d3ff6b3d7 /llvm/lib/Target/X86/X86TargetMachine.cpp
parent20beeea24a6a11cac6e59dee8250b72fe24b6871 (diff)
downloadllvm-8dd66e5753bcff1a7ea6bd217db0a94c6cb98585.zip
llvm-8dd66e5753bcff1a7ea6bd217db0a94c6cb98585.tar.gz
llvm-8dd66e5753bcff1a7ea6bd217db0a94c6cb98585.tar.bz2
Remove HasFnAttribute guards to getFnAttribute calls
These checks are redundant and can be removed Reviewers: hans Subscribers: llvm-commits, mzolotukhin Differential Revision: http://reviews.llvm.org/D18564 llvm-svn: 264872
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r--llvm/lib/Target/X86/X86TargetMachine.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp
index 382de99..3973030 100644
--- a/llvm/lib/Target/X86/X86TargetMachine.cpp
+++ b/llvm/lib/Target/X86/X86TargetMachine.cpp
@@ -157,7 +157,6 @@ X86TargetMachine::getSubtargetImpl(const Function &F) const {
// it as a key for the subtarget since that can be the only difference
// between two functions.
bool SoftFloat =
- F.hasFnAttribute("use-soft-float") &&
F.getFnAttribute("use-soft-float").getValueAsString() == "true";
// If the soft float attribute is set on the function turn on the soft float
// subtarget feature.