[PATCH] D19488: [CodeGenPrepare] use branch weight metadata to decide if a select should be turned into a branch

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 14:11:59 PDT 2016


spatel updated this revision to Diff 54903.
spatel added a comment.

Patch updated:

1. Added test case to show that likely true and likely false are both handled.
2. Made auto-generated checks a bit more flexible by using regex.


http://reviews.llvm.org/D19488

Files:
  include/llvm/IR/Instruction.h
  include/llvm/IR/Instructions.h
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/CodeGenPrepare.cpp
  lib/IR/Instructions.cpp
  lib/IR/Metadata.cpp
  test/CodeGen/X86/cmov-into-branch.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19488.54903.patch
Type: text/x-patch
Size: 8581 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160425/01f82ccf/attachment.bin>


More information about the llvm-commits mailing list