OSDN Git Service

Add check for "branch_weights" with prof metadata
authorSanjay Patel <spatel@rotateright.com>
Mon, 25 Apr 2016 23:15:16 +0000 (23:15 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 25 Apr 2016 23:15:16 +0000 (23:15 +0000)
commitd08220a7df69eddee281b52cf1cc562ba88aae69
treef5ec495df1cbf1eb1d50cd88d5936b5565b8f8c8
parent8070b45c6d9c30464f71bb62accf78f9b6f7f387
Add check for "branch_weights" with prof metadata

While we're here, fix the comment and variable names to make it
clear that these are raw weights, not percentages.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267491 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Instructions.h
lib/IR/Instructions.cpp
test/Transforms/SimplifyCFG/preserve-branchweights.ll