mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-13 10:32:06 +00:00
add some other xforms that should be done as part of PR5783
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91428 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4a5129c700
commit
099b41f342
@ -2644,10 +2644,11 @@ bool SimplifyLibCalls::doInitialization(Module &M) {
|
||||
// * strcspn("",a) -> 0
|
||||
// * strcspn(s,"") -> strlen(a)
|
||||
//
|
||||
// strstr:
|
||||
// strstr: (PR5783)
|
||||
// * strstr(x,x) -> x
|
||||
// * strstr(s1,s2) -> offset_of_s2_in(s1)
|
||||
// (if s1 and s2 are constant strings)
|
||||
// * strstr(x, "") -> x
|
||||
// * strstr(x, "a") -> strchr(x, 'a')
|
||||
// * strstr(s1,s2) -> result (if s1 and s2 are constant strings)
|
||||
//
|
||||
// tan, tanf, tanl:
|
||||
// * tan(atan(x)) -> x
|
||||
|
Loading…
x
Reference in New Issue
Block a user