[PATCH] D138132: [JumpThreading] Preserve profile metadata during select unfolding
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 9 14:56:04 PST 2023
lebedev.ri added inline comments.
================
Comment at: llvm/test/Transforms/JumpThreading/select.ll:4-9
+; CHECK-LABEL: ---- Branch Probability Info : unfold1 ----
+; CHECK: set edge cond.false -> 0 successor probability to 0x0ccccccd / 0x80000000 = 10.00%
+; CHECK: set edge cond.false -> 1 successor probability to 0x73333333 / 0x80000000 = 90.00%
+; CHECK-LABEL: ---- Branch Probability Info : unfold2 ----
+; CHECK: set edge cond.false -> 0 successor probability to 0x0ccccccd / 0x80000000 = 10.00%
+; CHECK: set edge cond.false -> 1 successor probability to 0x73333333 / 0x80000000 = 90.00%
----------------
You should just check the metadata (`--check-globals`)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138132/new/
https://reviews.llvm.org/D138132
More information about the llvm-commits
mailing list