HomePhabricator

[SelectionDAG] Add [us]itofp(undef) --> 0 constant fold (PR39205)

Description

[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

Details