diff options
author | Craig Topper <craig.topper@intel.com> | 2018-02-26 02:16:31 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2018-02-26 02:16:31 +0000 |
commit | 79d189f5970e43cac372403cdf329d6ba04e6bf1 (patch) | |
tree | 409670d8c8c000143268b3300429e547a224c1e4 /llvm/lib/Target/X86/X86ISelLowering.cpp | |
parent | c0ffd637b985a56a58df6dc14d2715efb6f9182c (diff) | |
download | bcm5719-llvm-79d189f5970e43cac372403cdf329d6ba04e6bf1.tar.gz bcm5719-llvm-79d189f5970e43cac372403cdf329d6ba04e6bf1.zip |
[X86] Remove VT.isSimple() check from detectAVGPattern.
Which types are considered 'simple' is a function of the requirements of all targets that LLVM supports. That shouldn't directly affect what types we are able to handle. The remainder of this code checks that the number of elements is a power of 2 and takes care of splitting down to a legal size.
llvm-svn: 326063
Diffstat (limited to 'llvm/lib/Target/X86/X86ISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 2cce3669719..f2a88ef6f5c 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -34369,7 +34369,7 @@ static SDValue combineTruncateWithSat(SDValue In, EVT VT, const SDLoc &DL, static SDValue detectAVGPattern(SDValue In, EVT VT, SelectionDAG &DAG, const X86Subtarget &Subtarget, const SDLoc &DL) { - if (!VT.isVector() || !VT.isSimple()) + if (!VT.isVector()) return SDValue(); EVT InVT = In.getValueType(); unsigned NumElems = VT.getVectorNumElements(); |