[llvm-commits] [llvm] r157515 - in /llvm/trunk: include/llvm/Support/MDBuilder.h lib/Transforms/Utils/LowerExpectIntrinsic.cpp lib/Transforms/Utils/SimplifyCFG.cpp
Andrew Trick
atrick at apple.com
Tue May 29 12:10:42 PDT 2012
On May 26, 2012, at 6:59 AM, Benjamin Kramer <benny.kra at googlemail.com> wrote:
> Author: d0k
> Date: Sat May 26 08:59:43 2012
> New Revision: 157515
>
> URL: http://llvm.org/viewvc/llvm-project?rev=157515&view=rev
> Log:
> Add support for branch weight metadata to MDBuilder and use it in various places.
>
> Modified:
> llvm/trunk/include/llvm/Support/MDBuilder.h
> llvm/trunk/lib/Transforms/Utils/LowerExpectIntrinsic.cpp
> llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
It might be straightforward to preserve branch weights in SimplifyBranchOnICmpChain. No one seems to have gotten around to it yet ;-)
We may end up with bloated metadata for some switches because we require an entry for every case. We could loosen the metadata requirements if that's a problem.
-Andy
More information about the llvm-commits
mailing list