[PATCH] D50233: [InstCombine] Transform str(n)cmp to memcmp
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 3 14:15:32 PDT 2018
xbolva00 added inline comments.
================
Comment at: test/Transforms/InstCombine/strcmp-memcmp.ll:10
+
+define i32 @strcmp_memcmp([12 x i8]* %buf) {
+; CHECK-LABEL: @strcmp_memcmp(
----------------
Not sure what breaks transformation with this test file, i tried [12 x i8]* align 1 %buf, but it did not worked.
Any advice? Otherwise, this transformation works with aligned alloca.
https://reviews.llvm.org/D50233
More information about the llvm-commits
mailing list