[PATCH] D80987: [Instruction] Remove setProfWeight()

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 09:18:52 PDT 2020


davidxl added inline comments.


================
Comment at: llvm/test/Transforms/InstCombine/cast-call-combine-prof.ll:35
 
-; CHECK: ![[$PROF]] = !{!"branch_weights", i32 2000}
+; CHECK: ![[$PROF]] = !{!"VP", i32 0, i64 2000, i64 -3913987384944532146, i64 2000}
 !0 = !{!"VP", i32 0, i64 2000, i64 -3913987384944532146, i64 2000}
----------------
yrouban wrote:
> davidxl wrote:
> > where does 'branch_weights' profdata go? 
> "VP" is preserved as pointed out in the summary.
If the invoke is still there, the branch weights should also be copied over, right?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80987/new/

https://reviews.llvm.org/D80987





More information about the llvm-commits mailing list