[PATCH] D24118: [JumpThreading] Only write back branch-weight MDs for blocks that originally had PGO info
David Li via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 1 15:41:47 PDT 2016
davidxl added inline comments.
================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:1633
@@ +1632,3 @@
+ // operand to the metadata node is a name, not a weight.
+ return WeightsNode->getNumOperands() == TI->getNumSuccessors() + 1;
+}
----------------
Check the 'branch_weight' string.
https://reviews.llvm.org/D24118
More information about the llvm-commits
mailing list