[PATCH] D23590: [Profile] Propagate branch metadata properly in InstCombine

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 07:12:58 PDT 2016


spatel added inline comments.

================
Comment at: lib/Transforms/InstCombine/InstCombineSelect.cpp:416
@@ -413,1 +415,3 @@
 
+static void SwapBranchWeights(SelectInst &SI) {
+  SmallVector<uint32_t, 3> Weights;
----------------
"SwapBranchWeights" -> "swapBranchWeights"

On 2nd thought, can we refactor/reuse copyMetadata() from LoopUnswitch.cpp instead of duplicating?



https://reviews.llvm.org/D23590





More information about the llvm-commits mailing list