mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-29 07:39:27 +00:00
[projects/test-suite] White space and long line fixes.
No functionality changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bdfed1687b
commit
adbd3ae1df
@ -1185,11 +1185,12 @@ public:
|
||||
|
||||
/// Return true if the target supplies and combines to a paired load
|
||||
/// two loaded values of type LoadedType next to each other in memory.
|
||||
/// RequiredAlignment gives the minimal alignment constraints that must be met to
|
||||
/// be able to select this paired load.
|
||||
/// RequiredAlignment gives the minimal alignment constraints that must be met
|
||||
/// to be able to select this paired load.
|
||||
///
|
||||
/// This information is *not* used to generate actual paired loads, but it is used
|
||||
/// to generate a sequence of loads that is easier to combine into a paired load.
|
||||
/// This information is *not* used to generate actual paired loads, but it is
|
||||
/// used to generate a sequence of loads that is easier to combine into a
|
||||
/// paired load.
|
||||
/// For instance, something like this:
|
||||
/// a = load i64* addr
|
||||
/// b = trunc i64 a to i32
|
||||
@ -1200,8 +1201,9 @@ public:
|
||||
/// d = load i32* addr2
|
||||
/// Where addr1 = addr2 +/- sizeof(i32).
|
||||
///
|
||||
/// In other words, unless the target performs a post-isel load combining, this
|
||||
/// information should not be provided because it will generate more loads.
|
||||
/// In other words, unless the target performs a post-isel load combining,
|
||||
/// this information should not be provided because it will generate more
|
||||
/// loads.
|
||||
virtual bool hasPairedLoad(Type * /*LoadedType*/,
|
||||
unsigned & /*RequiredAligment*/) const {
|
||||
return false;
|
||||
@ -1536,7 +1538,8 @@ public:
|
||||
|
||||
// Stop trying when getting a non-simple element type.
|
||||
// Note that vector elements may be greater than legal vector element
|
||||
// types. Example: X86 XMM registers hold 64bit element on 32bit systems.
|
||||
// types. Example: X86 XMM registers hold 64bit element on 32bit
|
||||
// systems.
|
||||
if (!EltVT.isSimple()) break;
|
||||
|
||||
// Build a new vector type and check if it is legal.
|
||||
@ -1697,7 +1700,8 @@ public:
|
||||
/// by reference if this node can be combined with a load / store to form a
|
||||
/// post-indexed load / store.
|
||||
virtual bool getPostIndexedAddressParts(SDNode * /*N*/, SDNode * /*Op*/,
|
||||
SDValue &/*Base*/, SDValue &/*Offset*/,
|
||||
SDValue &/*Base*/,
|
||||
SDValue &/*Offset*/,
|
||||
ISD::MemIndexedMode &/*AM*/,
|
||||
SelectionDAG &/*DAG*/) const {
|
||||
return false;
|
||||
|
@ -349,7 +349,8 @@ namespace {
|
||||
assert(LHSTy.isInteger() && "Shift amount is not an integer type!");
|
||||
if (LHSTy.isVector())
|
||||
return LHSTy;
|
||||
return LegalTypes ? TLI.getScalarShiftAmountTy(LHSTy) : TLI.getPointerTy();
|
||||
return LegalTypes ? TLI.getScalarShiftAmountTy(LHSTy)
|
||||
: TLI.getPointerTy();
|
||||
}
|
||||
|
||||
/// isTypeLegal - This method returns true if we are running before type
|
||||
@ -1037,7 +1038,8 @@ void DAGCombiner::Run(CombineLevel AtLevel) {
|
||||
// try and combine it.
|
||||
while (!WorkListContents.empty()) {
|
||||
SDNode *N;
|
||||
// The WorkListOrder holds the SDNodes in order, but it may contain duplicates.
|
||||
// The WorkListOrder holds the SDNodes in order, but it may contain
|
||||
// duplicates.
|
||||
// In order to avoid a linear scan, we use a set (O(log N)) to hold what the
|
||||
// worklist *should* contain, and check the node we want to visit is should
|
||||
// actually be visited.
|
||||
@ -1791,8 +1793,8 @@ SDValue DAGCombiner::visitSUBE(SDNode *N) {
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
/// isConstantSplatVector - Returns true if N is a BUILD_VECTOR node whose elements are
|
||||
/// all the same constant or undefined.
|
||||
/// isConstantSplatVector - Returns true if N is a BUILD_VECTOR node whose
|
||||
/// elements are all the same constant or undefined.
|
||||
static bool isConstantSplatVector(SDNode *N, APInt& SplatValue) {
|
||||
BuildVectorSDNode *C = dyn_cast<BuildVectorSDNode>(N);
|
||||
if (!C)
|
||||
@ -1828,9 +1830,11 @@ SDValue DAGCombiner::visitMUL(SDNode *N) {
|
||||
N1IsConst = isConstantSplatVector(N1.getNode(), ConstValue1);
|
||||
} else {
|
||||
N0IsConst = dyn_cast<ConstantSDNode>(N0) != 0;
|
||||
ConstValue0 = N0IsConst? (dyn_cast<ConstantSDNode>(N0))->getAPIntValue() : APInt();
|
||||
ConstValue0 = N0IsConst ? (dyn_cast<ConstantSDNode>(N0))->getAPIntValue()
|
||||
: APInt();
|
||||
N1IsConst = dyn_cast<ConstantSDNode>(N1) != 0;
|
||||
ConstValue1 = N1IsConst? (dyn_cast<ConstantSDNode>(N1))->getAPIntValue() : APInt();
|
||||
ConstValue1 = N1IsConst ? (dyn_cast<ConstantSDNode>(N1))->getAPIntValue()
|
||||
: APInt();
|
||||
}
|
||||
|
||||
// fold (mul c1, c2) -> c1*c2
|
||||
@ -9891,7 +9895,8 @@ SDValue DAGCombiner::visitEXTRACT_SUBVECTOR(SDNode* N) {
|
||||
// (extract_subvec (concat V1, V2, ...), i)
|
||||
// Into:
|
||||
// Vi if possible
|
||||
// Only operand 0 is checked as 'concat' assumes all inputs of the same type.
|
||||
// Only operand 0 is checked as 'concat' assumes all inputs of the same
|
||||
// type.
|
||||
if (V->getOperand(0).getValueType() != NVT)
|
||||
return SDValue();
|
||||
unsigned Idx = dyn_cast<ConstantSDNode>(N->getOperand(1))->getZExtValue();
|
||||
@ -10640,7 +10645,8 @@ SDValue DAGCombiner::SimplifySelectCC(SDLoc DL, SDValue N0, SDValue N1,
|
||||
return Temp;
|
||||
|
||||
// shl setcc result by log2 n2c
|
||||
return DAG.getNode(ISD::SHL, DL, N2.getValueType(), Temp,
|
||||
return DAG.getNode(
|
||||
ISD::SHL, DL, N2.getValueType(), Temp,
|
||||
DAG.getConstant(N2C->getAPIntValue().logBase2(),
|
||||
getShiftAmountTy(Temp.getValueType())));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user