[PATCH] D11841: [ConstantFoldTerminator] Preserve make.implicit metadata when converting SwitchInst to BranchInst

Weiming Zhao via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 11:30:56 PDT 2015


weimingz added inline comments.

================
Comment at: lib/Transforms/Utils/Local.cpp:232
@@ -231,1 +231,3 @@
 
+      // Update make.implicit metadata to the newly-created conditional branch
+      MDNode *MakeImplicitMD = SI->getMetadata(LLVMContext::MD_make_implicit);
----------------
LGTM.
just nitpick: the comment needs period.



http://reviews.llvm.org/D11841





More information about the llvm-commits mailing list