OSDN Git Service

[SelectionDAG] Add [us]itofp(undef) --> 0 constant fold (PR39205)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 3 Jun 2019 13:02:07 +0000 (13:02 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 3 Jun 2019 13:02:07 +0000 (13:02 +0000)
commit2d2b2ea8ca07f4b55052ccd95b1c95e8bcc66096
tree1472a03eb2bc469110a74875ea9585e57bb01cac
parent58c0bf12415f91ad6e08be36d60b858ba23eabbe
[SelectionDAG] Add [us]itofp(undef) --> 0 constant fold (PR39205)

We were missing this fold in the DAG, which I've copied directly from llvm::ConstantFoldCastInstruction

Differential Revision: https://reviews.llvm.org/D62807

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362397 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
test/CodeGen/X86/avx512-cvt-widen.ll
test/CodeGen/X86/avx512-cvt.ll
test/CodeGen/X86/vec_int_to_fp-widen.ll
test/CodeGen/X86/vec_int_to_fp.ll