OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62a80b4
)
[X86] Use X86::LAST_VALID_COND instead of assuming X86::COND_S is the last encoding...
author
Craig Topper
<craig.topper@intel.com>
Thu, 28 Feb 2019 01:00:31 +0000
(
01:00
+0000)
committer
Craig Topper
<craig.topper@intel.com>
Thu, 28 Feb 2019 01:00:31 +0000
(
01:00
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355059
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86InstrInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86InstrInfo.cpp
b/lib/Target/X86/X86InstrInfo.cpp
index
dd214de
..
acc790c
100644
(file)
--- a/
lib/Target/X86/X86InstrInfo.cpp
+++ b/
lib/Target/X86/X86InstrInfo.cpp
@@
-2818,7
+2818,7
@@
canInsertSelect(const MachineBasicBlock &MBB,
if (Cond.size() != 1)
return false;
// We cannot do the composite conditions, at least not in SSA form.
- if ((X86::CondCode)Cond[0].getImm() > X86::
COND_S
)
+ if ((X86::CondCode)Cond[0].getImm() > X86::
LAST_VALID_COND
)
return false;
// Check register classes.