[PATCH] D27938: [LICM] Report successful hoists/sinks

Davide Italiano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 3 10:05:28 PST 2017


davide added inline comments.


================
Comment at: test/Transforms/LICM/opt-remarks.ll:11-16
+  %addr = getelementptr i32, i32* %array, i32 %j
+  %a = load i32, i32* %addr
+; CHECK: remark: /tmp/kk.c:2:20: hosting load
+  %b = load i32, i32* %p, !dbg !8
+  %a2 = add i32 %a, %b
+  store i32 %a2, i32* %addr
----------------
anemet wrote:
> davide wrote:
> > This test is fine but you should add another one where you show up that the remark is emitted when a load is sunk
> You mean, store, right?
yeah, fat fingering =)


https://reviews.llvm.org/D27938





More information about the llvm-commits mailing list