[PATCH] D22842: Do not remove empty lifetime.start/lifetime.end ranges
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 27 11:46:04 PDT 2016
majnemer added a subscriber: majnemer.
================
Comment at: test/Transforms/InstCombine/lifetime-asan.ll:10-11
@@ +9,4 @@
+ ; CHECK-LABEL: @asan(
+ %text = alloca [1 x i8], align 1
+ %0 = getelementptr inbounds [1 x i8], [1 x i8]* %text, i64 0, i64 0
+
----------------
Instead of alloca + gep, why not just make you alloca have type i8?
================
Comment at: test/Transforms/InstCombine/lifetime-asan.ll:27-28
@@ +26,4 @@
+ ; CHECK-LABEL: @no_asan(
+ %text = alloca [1 x i8], align 1
+ %0 = getelementptr inbounds [1 x i8], [1 x i8]* %text, i64 0, i64 0
+
----------------
Ditto.
https://reviews.llvm.org/D22842
More information about the llvm-commits
mailing list