[PATCH] D68089: [InstCombine] Optimize some memccpy calls to memcpy/null
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 16:30:54 PDT 2019
xbolva00 marked an inline comment as done.
xbolva00 added inline comments.
================
Comment at: test/Transforms/InstCombine/memccpy.ll:91
+;
+ %call = call i8* @memccpy(i8* %dst, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @NoNulTerminator, i64 0, i64 0), i32 115, i64 %n) ; 115 is 's'
+ ret i8* %call
----------------
@efriedma ?
Maybe you meant this case?
e.g. n = 20
and we have block of memory "helloworld" "saaaattttt" and stop is char is 's'. In reality we copy 11 chars, but memcpy would copy n = 20 chars.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68089/new/
https://reviews.llvm.org/D68089
More information about the llvm-commits
mailing list