From fc926c2395a2593afcdee68378a0ff8c6c54f2e3 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 11 Nov 2009 17:54:02 +0000 Subject: [PATCH] another const prop failure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86848 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/README.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Target/README.txt b/lib/Target/README.txt index d999f4c3f35..bcc55b41e1a 100644 --- a/lib/Target/README.txt +++ b/lib/Target/README.txt @@ -1710,3 +1710,12 @@ The results for a function + set of constant arguments should be memoized in a map. //===---------------------------------------------------------------------===// + +The libcall constant folding stuff should be moved out of SimplifyLibcalls into +libanalysis' constantfolding logic. This would allow IPSCCP to be able to +handle simple things like this: + +static int foo(const char *X) { return strlen(X); } +int bar() { return foo("abcd"); } + +//===---------------------------------------------------------------------===//