projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdcc5b6
)
X86: initialize a few subtarget variables.
author
Tim Northover
<tnorthover@apple.com>
Mon, 1 May 2017 17:50:15 +0000
(17:50 +0000)
committer
Tim Northover
<tnorthover@apple.com>
Mon, 1 May 2017 17:50:15 +0000
(17:50 +0000)
Otherwise an indeterminate value gets read, causing a bunch of UBSan failures.
llvm-svn: 301819
llvm/lib/Target/X86/X86Subtarget.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86Subtarget.cpp
b/llvm/lib/Target/X86/X86Subtarget.cpp
index
b805ddf
..
82ff436
100644
(file)
--- a/
llvm/lib/Target/X86/X86Subtarget.cpp
+++ b/
llvm/lib/Target/X86/X86Subtarget.cpp
@@
-290,6
+290,9
@@
void X86Subtarget::initializeEnvironment() {
HasMWAITX = false;
HasCLZERO = false;
HasMPX = false;
+ HasSGX = false;
+ HasCLFLUSHOPT = false;
+ HasCLWB = false;
IsBTMemSlow = false;
IsPMULLDSlow = false;
IsSHLDSlow = false;