summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorRong Xu <xur@google.com>2018-10-09 22:03:40 +0000
committerRong Xu <xur@google.com>2018-10-09 22:03:40 +0000
commit3d2efdfdea2f70ab2eb1e81dc9c254240e4f2d7b (patch)
tree0d5fa1c20f7aabe88635ecc5223c12d5c0c38c82 /llvm/lib/Target/X86/X86Subtarget.h
parentbea5967e8ce465734d59823d5b3d24453ae949b0 (diff)
downloadbcm5719-llvm-3d2efdfdea2f70ab2eb1e81dc9c254240e4f2d7b.tar.gz
bcm5719-llvm-3d2efdfdea2f70ab2eb1e81dc9c254240e4f2d7b.zip
Recommit r343993: [X86] condition branches folding for three-way conditional codes
Fix the memory issue exposed by sanitizer. llvm-svn: 344085
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index 5dd406b1400..ddee9a692e1 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -419,6 +419,9 @@ protected:
/// Indicates target prefers 256 bit instructions.
bool Prefer256Bit = false;
+ /// Threeway branch is profitable in this subtarget.
+ bool ThreewayBranchProfitable = false;
+
/// What processor and OS we're targeting.
Triple TargetTriple;
@@ -662,6 +665,7 @@ public:
bool hasWAITPKG() const { return HasWAITPKG; }
bool hasPCONFIG() const { return HasPCONFIG; }
bool hasSGX() const { return HasSGX; }
+ bool threewayBranchProfitable() const { return ThreewayBranchProfitable; }
bool hasINVPCID() const { return HasINVPCID; }
bool useRetpolineIndirectCalls() const { return UseRetpolineIndirectCalls; }
bool useRetpolineIndirectBranches() const {
OpenPOWER on IntegriCloud