[PATCH] D51919: [CallSiteSplitting] Add debug location to created PHI nodes.

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 11 09:04:05 PDT 2018


junbuml accepted this revision.
junbuml added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: test/Transforms/CallSiteSplitting/callsite-split-preserve-debug.ll:26
+; CHECK-NEXT:  [[R2:%.+]] = call i32 @callee(i32 0, i32 %i), !dbg [[DBG_CALL]]
+; CHECK:  phi i32 [ [[LV1]], %Header.split ], [ [[LV2]], %TBB.split ], !dbg [[DBG_LV]]
+; CHECK:  phi i32 [ [[R1]], %Header.split ], [ [[R2]], %TBB.split ], !dbg [[DBG_CALL]]
----------------
It would be good to add CHECK-LABEL for the TailBB before this. 


https://reviews.llvm.org/D51919





More information about the llvm-commits mailing list