[llvm] r321041 - TargetLoweringBase: Remove unnecessary watchos exception; NFC

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 15:33:28 PST 2017


Author: matze
Date: Mon Dec 18 15:33:28 2017
New Revision: 321041

URL: http://llvm.org/viewvc/llvm-project?rev=321041&view=rev
Log:
TargetLoweringBase: Remove unnecessary watchos exception; NFC

WatchOS isn't report as iOS (as opposed to tvos) so the exception I
added in my last commit wasn't necessary after all.

Modified:
    llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp

Modified: llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp?rev=321041&r1=321040&r2=321041&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringBase.cpp Mon Dec 18 15:33:28 2017
@@ -91,12 +91,13 @@ static cl::opt<unsigned> OptsizeJumpTabl
 
 static bool darwinHasSinCos(const Triple &TT) {
   assert(TT.isOSDarwin() && "should be called with darwin triple");
-  // macos < 10.9 has no sincos_stret and we don't bother for 32bit code.
+  // Macos < 10.9 has no sincos_stret and we don't bother for 32bit code.
   if (TT.isMacOSX())
     return !TT.isMacOSXVersionLT(10, 9) && TT.isArch64Bit();
-  // ios < 7.0 has no sincos_stret (watchos reports version 2.0 but is fine).
+  // iOS < 7.0 has no sincos_stret.
   if (TT.isiOS())
-    return !TT.isOSVersionLT(7, 0) || TT.isWatchOS();
+    return !TT.isOSVersionLT(7, 0);
+  // Any other darwin such as WatchOS/TvOS is new enough.
   return true;
 }
 




More information about the llvm-commits mailing list