diff options
| author | Chris Lattner <sabre@nondot.org> | 2004-03-15 04:18:28 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2004-03-15 04:18:28 +0000 |
| commit | ea42c857d6d76450595c8dd34270fcbde63f6a97 (patch) | |
| tree | aa529b43f4ee41c1afe620a6a030dfe634e943de /llvm/lib/Analysis/BasicAliasAnalysis.cpp | |
| parent | ecdbee554261da474f17c7d1966c7dc1654a4dd7 (diff) | |
| download | bcm5719-llvm-ea42c857d6d76450595c8dd34270fcbde63f6a97.tar.gz bcm5719-llvm-ea42c857d6d76450595c8dd34270fcbde63f6a97.zip | |
Fix a minor bug, implementing GCSE/call_pure_function.ll
Also, add some stuff I missed before.
llvm-svn: 12417
Diffstat (limited to 'llvm/lib/Analysis/BasicAliasAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/BasicAliasAnalysis.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp index 967b453ed52..9b6258edd3f 100644 --- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp +++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp @@ -186,9 +186,8 @@ BasicAliasAnalysis::getModRefInfo(CallSite CS, Value *P, unsigned Size) { 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,12 +596,16 @@ static const char *DoesntAccessMemoryTable[] = { "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", }; |

