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:
4e2f535
)
[X86] Add missing predicate to a pattern. NFC
author
Craig Topper
<craig.topper@intel.com>
Sun, 5 Nov 2017 21:14:06 +0000
(21:14 +0000)
committer
Craig Topper
<craig.topper@intel.com>
Sun, 5 Nov 2017 21:14:06 +0000
(21:14 +0000)
Other patterns had higher priority so this wasn't noticed. But we shouldn't be dependent on pattern order.
llvm-svn: 317442
llvm/lib/Target/X86/X86InstrAVX512.td
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86InstrAVX512.td
b/llvm/lib/Target/X86/X86InstrAVX512.td
index
ae56349
..
11274d9
100644
(file)
--- a/
llvm/lib/Target/X86/X86InstrAVX512.td
+++ b/
llvm/lib/Target/X86/X86InstrAVX512.td
@@
-7618,6
+7618,7
@@
multiclass avx512_sqrt_scalar<bits<8> opc, string OpcodeStr,X86VectorVTInfo _,
}
}
+let Predicates = [HasAVX512] in {
def : Pat<(_.EltVT (OpNode _.FRC:$src)),
(!cast<Instruction>(NAME#SUFF#Zr)
(_.EltVT (IMPLICIT_DEF)), _.FRC:$src)>;
@@
-7626,6
+7627,7
@@
multiclass avx512_sqrt_scalar<bits<8> opc, string OpcodeStr,X86VectorVTInfo _,
(!cast<Instruction>(NAME#SUFF#Zm)
(_.EltVT (IMPLICIT_DEF)), addr:$src)>, Requires<[HasAVX512, OptForSize]>;
}
+}
multiclass avx512_sqrt_scalar_all<bits<8> opc, string OpcodeStr> {
defm SSZ : avx512_sqrt_scalar<opc, OpcodeStr#"ss", f32x_info, "SS", fsqrt,