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)
commit82059090d361c98d836b603b83535208f5e571b9
tree9f73f07aef2eca0fe57aa3d12a3fd70d47c11594
parented737d7881ebdadf7d66a03a8502e3899f162ade
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.

llvm-svn: 267491
llvm/include/llvm/IR/Instructions.h
llvm/lib/IR/Instructions.cpp
llvm/test/Transforms/SimplifyCFG/preserve-branchweights.ll