diff options
author | Craig Topper <craig.topper@intel.com> | 2017-12-23 20:21:29 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-12-23 20:21:29 +0000 |
commit | 1f2f265fc1c232c491fbacb2da8f91503870b049 (patch) | |
tree | b2c9b5b2fc0e13fc3872032d323676993efe9eaf /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 7e9328906baa4a893212eb59643ac1e63ad0dbc0 (diff) | |
download | bcm5719-llvm-1f2f265fc1c232c491fbacb2da8f91503870b049.tar.gz bcm5719-llvm-1f2f265fc1c232c491fbacb2da8f91503870b049.zip |
[SelectionDAG] Teach SelectionDAG::getNode to constant fold zext/aext/sext of constant build vectors.
llvm-svn: 321414
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 12a21e74079..a04c770c51c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -3750,6 +3750,9 @@ SDValue SelectionDAG::getNode(unsigned Opcode, const SDLoc &DL, EVT VT, case ISD::FP_TO_SINT: case ISD::FP_TO_UINT: case ISD::TRUNCATE: + case ISD::ANY_EXTEND: + case ISD::ZERO_EXTEND: + case ISD::SIGN_EXTEND: case ISD::UINT_TO_FP: case ISD::SINT_TO_FP: case ISD::ABS: |