[llvm-dev] AtomicExpandPass and branch weighting
Kyle Butt via llvm-dev
llvm-dev at lists.llvm.org
Mon Dec 12 09:30:32 PST 2016
I'm working on a change to the layout algorithm, and I noted that
test/CodeGen/ARM/cmpxchg-weak.ll was affected.
Normally, that would be fine, but I noted that the layout changed the
fallthrough from the success case to the failure case. I was surprised to
see that the success case isn't annotated with a branch weight by
AtomicExpandPass.cpp
Would it make sense to annotate the success case as more likely when we
expand the intrinsic to help guarantee that the success case remains the
fallthrough? Even a 2:1 or 3:2 weighting would correct the layout issue I
noted.
Thanks,
Kyle.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20161212/5b056dc5/attachment.html>
More information about the llvm-dev
mailing list