[PATCH] D138132: [JumpThreading] Preserve profile metadata during select unfolding
Dmitri Gribenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 10 03:09:07 PST 2023
gribozavr2 added a comment.
Actually I do have a reduced example. Apply this change to the test that you added in this patch to reproduce the assertion failure:
diff --git a/llvm/test/Transforms/JumpThreading/select.ll b/llvm/test/Transforms/JumpThreading/select.ll
index 4c7f3ea7d277..cdaae23694c4 100644
--- a/llvm/test/Transforms/JumpThreading/select.ll
+++ b/llvm/test/Transforms/JumpThreading/select.ll
@@ -660,5 +660,5 @@ if.end:
ret i32 %v1
}
-!0 = !{!"branch_weights", i32 1, i32 9}
+!0 = !{!"branch_weights", i32 2147483648, i32 2147483648}
!1 = !{!"function_entry_count", i64 1984}
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