add a cl::opt override for TargetLoweringBase's JumpIsExpensive
authorSanjay Patel <spatel@rotateright.com>
Wed, 1 Jul 2015 18:10:20 +0000 (18:10 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 1 Jul 2015 18:10:20 +0000 (18:10 +0000)
commit7472456fe973adfd371890fddf16d087569e90a5
tree618cbddb2069941aadf22505da99bdf6407ab584
parent4b64e72fdd4b72fd3b27fd9958431293f3e7b28a
add a cl::opt override for TargetLoweringBase's JumpIsExpensive

This patch is not intended to change existing codegen behavior for any target.
It just exposes the JumpIsExpensive setting on the command-line to allow for
easier testing and emergency overrides.

Also, change the existing regression test to use FileCheck, explicitly specify
the jump-is-expensive option, and use more precise checks.

Differential Revision: http://reviews.llvm.org/D10846

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241179 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/TargetLoweringBase.cpp
test/CodeGen/X86/or-branch.ll