[llvm-commits] CVS: llvm/lib/Analysis/BasicAliasAnalysis.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 15 00:01:04 PST 2004
Changes in directory llvm/lib/Analysis:
BasicAliasAnalysis.cpp updated: 1.33 -> 1.34
---
Log message:
Fix a minor bug, implementing GCSE/call_pure_function.ll
Also, add some stuff I missed before.
---
Diffs of the changes: (+6 -3)
Index: llvm/lib/Analysis/BasicAliasAnalysis.cpp
diff -u llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.33 llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.34
--- llvm/lib/Analysis/BasicAliasAnalysis.cpp:1.33 Sun Mar 14 21:36:49 2004
+++ llvm/lib/Analysis/BasicAliasAnalysis.cpp Sun Mar 14 22:18:28 2004
@@ -186,9 +186,8 @@
return NoModRef;
}
- // If P points to a constant memory location, the call definitely could not
- // modify the memory location.
- return pointsToConstantMemory(P) ? Ref : ModRef;
+ // The AliasAnalysis base class has some smarts, lets use them.
+ return AliasAnalysis::getModRefInfo(CS, P, Size);
}
// alias - Provide a bunch of ad-hoc rules to disambiguate in common cases, such
@@ -597,11 +596,15 @@
"sin", "sinf", "sinl", "sinh", "sinhf", "sinhl",
"tan", "tanf", "tanl", "tanh", "tanhf", "tanhl",
+ // ctype.h
"isalnum", "isalpha", "iscntrl", "isdigit", "isgraph", "islower", "isprint"
"ispunct", "isspace", "isupper", "isxdigit", "tolower", "toupper",
+ // wctype.h"
"iswalnum", "iswalpha", "iswcntrl", "iswdigit", "iswgraph", "iswlower",
"iswprint", "iswpunct", "iswspace", "iswupper", "iswxdigit",
+
+ "iswctype", "towctrans", "towlower", "towupper",
"btowc", "wctob",
};
More information about the llvm-commits
mailing list