mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Given a pair of floating point load and store, if there are no other uses of
the load, then it may be legal to transform the load and store to integer load and store of the same width. This is done if the target specified the transformation as profitable. e.g. On arm, this can transform: vldr.32 s0, [] vstr.32 s0, [] to ldr r12, [] str r12, [] rdar://8944252 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -963,6 +963,13 @@ public:
|
||||
return isTypeLegal(VT);
|
||||
}
|
||||
|
||||
/// isDesirableToPromoteOp - Return true if it is profitable for dag combiner
|
||||
/// to transform a floating point op of specified opcode to a equivalent op of
|
||||
/// an integer type. e.g. f32 load -> i32 load can be profitable on ARM.
|
||||
virtual bool isDesirableToTransformToIntegerOp(unsigned Opc, EVT VT) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// 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.
|
||||
|
Reference in New Issue
Block a user