This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by RKSimon on Jun 3 2019, 5:28 AM.

Details

Summary

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

I've had to tweak the systemz reduced test case to prevent it folding away but the x86 test cases are all examples of the extra scalar conversions reported in PR39205

Diff Detail

Repository
rL LLVM