[llvm-dev] Dumping branch weights in loop unroll phase

Shubham Narlawar via llvm-dev llvm-dev at lists.llvm.org
Wed Nov 24 23:06:57 PST 2021


Hello,

I am using a cross compiler built from llvm trunk source.

Host - x86
Target - AArch64

I am seeing the same loop unroll dump before and after loop unroll
pass using flags - "-O2 -funroll-loops". Is there a way to check
whether the loop has unrolled or not?

As I am seeing both before and after loop unroll dumps as same, is
there a way to dump branch weights? I tried flag "-stats" but I am not
getting any warnings or actual branch weights.

Thanks and Regards,
Shubham


More information about the llvm-dev mailing list