[PATCH] D10979: Update the branch weight metadata in JumpThreading pass.

Diego Novillo dnovillo at google.com
Tue Jul 7 11:37:46 PDT 2015


dnovillo added a subscriber: dnovillo.

================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:1522
@@ +1521,3 @@
+  // Freq(BB->SuccBB).
+  SmallVector<uint32_t, 8> Weights;
+  auto TI = BB->getTerminator();
----------------
Shouldn't you be using weights here instead of frequencies? Frequencies can be computed later out of the branch weights.


http://reviews.llvm.org/D10979







More information about the llvm-commits mailing list