floor/ceil don't read/write memory. This allows gcse to eliminate 6 calls
authorChris Lattner <sabre@nondot.org>
Wed, 24 Aug 2005 16:58:56 +0000 (16:58 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 24 Aug 2005 16:58:56 +0000 (16:58 +0000)
in mesa.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23015 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp

index 0b80e926301a8cce0cc6ddc251b147fae5c4b9f8..86cc5646be66a398ad8523ca0179984397c2bb53 100644 (file)
@@ -720,6 +720,8 @@ static const char *DoesntAccessMemoryTable[] = {
   "hypot",
   "sin", "sinf", "sinl",
   "tan", "tanf", "tanl",      "tanh", "tanhf", "tanhl",
+  
+  "floor", "floorf", "floorl", "ceil", "ceilf", "ceill",
 
   // ctype.h
   "isalnum", "isalpha", "iscntrl", "isdigit", "isgraph", "islower", "isprint"