mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-22 21:41:38 +00:00
Fix operator precedence warning. NFCI.
Reported in https://www.viva64.com/en/b/0629/ llvm-svn: 359469
This commit is contained in:
parent
f50cd8746b
commit
aedeb27a92
@ -401,7 +401,8 @@ int PPCTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index) {
|
||||
|
||||
if (ST->hasVSX() && Val->getScalarType()->isDoubleTy()) {
|
||||
// Double-precision scalars are already located in index #0 (or #1 if LE).
|
||||
if (ISD == ISD::EXTRACT_VECTOR_ELT && Index == ST->isLittleEndian() ? 1 : 0)
|
||||
if (ISD == ISD::EXTRACT_VECTOR_ELT &&
|
||||
Index == (ST->isLittleEndian() ? 1 : 0))
|
||||
return 0;
|
||||
|
||||
return Cost;
|
||||
|
Loading…
x
Reference in New Issue
Block a user