mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
Move some functions around so they can be used for some other to come function
llvm-svn: 112687
This commit is contained in:
parent
1ba5a3fc80
commit
c31697f68c
@ -2576,6 +2576,14 @@ X86TargetLowering::createFastISel(FunctionLoweringInfo &funcInfo) const {
|
||||
// Other Lowering Hooks
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
static bool MayFoldLoad(SDValue Op) {
|
||||
return Op.hasOneUse() && ISD::isNormalLoad(Op.getNode());
|
||||
}
|
||||
|
||||
static bool MayFoldIntoStore(SDValue Op) {
|
||||
return Op.hasOneUse() && ISD::isNormalStore(*Op.getNode()->use_begin());
|
||||
}
|
||||
|
||||
static bool isTargetShuffle(unsigned Opcode) {
|
||||
switch(Opcode) {
|
||||
default: return false;
|
||||
@ -10563,14 +10571,6 @@ bool X86TargetLowering::isTypeDesirableForOp(unsigned Opc, EVT VT) const {
|
||||
}
|
||||
}
|
||||
|
||||
static bool MayFoldLoad(SDValue Op) {
|
||||
return Op.hasOneUse() && ISD::isNormalLoad(Op.getNode());
|
||||
}
|
||||
|
||||
static bool MayFoldIntoStore(SDValue Op) {
|
||||
return Op.hasOneUse() && ISD::isNormalStore(*Op.getNode()->use_begin());
|
||||
}
|
||||
|
||||
/// IsDesirableToPromoteOp - This method query the target whether it is
|
||||
/// beneficial for dag combiner to promote the specified node. If true, it
|
||||
/// should return the desired promotion type by reference.
|
||||
|
Loading…
x
Reference in New Issue
Block a user