[PATCH] D149390: [NFC][EarlyCSE]Modify test case to ensure branch weights are preserved with cse.
Mingming Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 28 15:59:03 PDT 2023
mingmingl added a comment.
LICM may drop `!prof` for a similar reason that `!prof` is not a known metadata that doesn't have UB side effects (https://github.com/llvm/llvm-project/blob/2dc97921afba741586887037763784fc9b19c304/llvm/lib/Transforms/Scalar/LICM.cpp#L1744) -> so looks like another case to fix.
- test case https://gcc.godbolt.org/z/47Mj9vn9n
For one PRE case, both GVN and EarlyCSE could merge call instructions and preserve `!prof` (https://gcc.godbolt.org/z/3fzP3x6eG and https://gcc.godbolt.org/z/aT8W4crzv)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149390/new/
https://reviews.llvm.org/D149390
More information about the llvm-commits
mailing list