summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-24 16:58:56 +0000
committerChris Lattner <sabre@nondot.org>2005-08-24 16:58:56 +0000
commit898e50ecb397535ba7c74e70541a81e19f40973c (patch)
tree1c0e473d6f8bc89e65bd4c7b8244ad440fea713e /llvm/lib/Analysis
parent03e64f6c1edca11527b37c017ec04ff2c0a6d1c7 (diff)
downloadbcm5719-llvm-898e50ecb397535ba7c74e70541a81e19f40973c.tar.gz
bcm5719-llvm-898e50ecb397535ba7c74e70541a81e19f40973c.zip
floor/ceil don't read/write memory. This allows gcse to eliminate 6 calls
in mesa. llvm-svn: 23015
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/BasicAliasAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index 0b80e926301..86cc5646be6 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -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"
OpenPOWER on IntegriCloud