mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
Refine fix to PR10499, no functionality change
- Put expensive checking after simple one git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176060 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e6e15caa7
commit
d09318f901
@ -5344,7 +5344,7 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
|
|||||||
// Vectors containing all ones can be matched by pcmpeqd on 128-bit width
|
// Vectors containing all ones can be matched by pcmpeqd on 128-bit width
|
||||||
// vectors or broken into v4i32 operations on 256-bit vectors. AVX2 can use
|
// vectors or broken into v4i32 operations on 256-bit vectors. AVX2 can use
|
||||||
// vpcmpeqd on 256-bit vectors.
|
// vpcmpeqd on 256-bit vectors.
|
||||||
if (ISD::isBuildVectorAllOnes(Op.getNode()) && Subtarget->hasSSE2()) {
|
if (Subtarget->hasSSE2() && ISD::isBuildVectorAllOnes(Op.getNode())) {
|
||||||
if (VT == MVT::v4i32 || (VT == MVT::v8i32 && Subtarget->hasInt256()))
|
if (VT == MVT::v4i32 || (VT == MVT::v8i32 && Subtarget->hasInt256()))
|
||||||
return Op;
|
return Op;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user