[PATCH] D45130: [CallSiteSplitting] Do not perform callsite splitting inside landing pad

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 3 08:16:38 PDT 2018


junbuml added a comment.

Thanks for handling this. Just minor comments inlined.



================
Comment at: lib/Transforms/Scalar/CallSiteSplitting.cpp:217-220
+  if (CallSiteBB->isEHPad())
+    return false;
+
   return CallSiteBB->canSplitPredecessors();
----------------
Since canSplitPredecessors() simply return false for EHPad except LandingPad, you can return false for EHPad here like : 

   return !CallSiteBB->isEHPad();


================
Comment at: test/Transforms/CallSiteSplitting/lpad.ll:7
+; CHECK-LABEL: @caller
+; CHECK: call void @callee
+; CHECK-NOT: call void @callee
----------------
Could you please also check the basic block name ? 


Repository:
  rL LLVM

https://reviews.llvm.org/D45130





More information about the llvm-commits mailing list