mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +00:00
[DAGCombiner] Add support for TRUNCATE + FP_EXTEND vector constant folding
This patch adds supports for the vector constant folding of TRUNCATE and FP_EXTEND instructions and tidies up the SINT_TO_FP and UINT_TO_FP instructions to match. It also moves the vector constant folding for the FNEG and FABS instructions to use the DAG.getNode() functionality like the other unary instructions. Differential Revision: http://reviews.llvm.org/D8593 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233224 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -94,6 +94,10 @@ namespace ISD {
|
||||
/// all ConstantSDNode or undef.
|
||||
bool isBuildVectorOfConstantSDNodes(const SDNode *N);
|
||||
|
||||
/// \brief Return true if the specified node is a BUILD_VECTOR node of
|
||||
/// all ConstantFPSDNode or undef.
|
||||
bool isBuildVectorOfConstantFPSDNodes(const SDNode *N);
|
||||
|
||||
/// Return true if the specified node is a
|
||||
/// ISD::SCALAR_TO_VECTOR node or a BUILD_VECTOR node where only the low
|
||||
/// element is not an undef.
|
||||
|
||||
Reference in New Issue
Block a user