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)
commit943829a1adb5d18be532f1f747275a01285720f3
tree55d14047cc019d0325a951a4be60fd74a312216f
parent0e9ff6972c9a19bd0491f5fb6e28b1bd956c6b0f
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

llvm-svn: 241179
llvm/include/llvm/Target/TargetLowering.h
llvm/lib/CodeGen/TargetLoweringBase.cpp
llvm/test/CodeGen/X86/or-branch.ll