[DAG] Don't perform SINT_TO_FP<->UINT_TO_FP custom conversion after legalization
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 30 Sep 2018 12:46:42 +0000 (12:46 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 30 Sep 2018 12:46:42 +0000 (12:46 +0000)
commit818cfc40ff464d426be37a552c3db8e895c94321
treed5bb7daa9941f6ec40894a94e2f76e1efa06412c
parent0496477c5dc23667d7b49625a71f8639298fb2b1
[DAG] Don't perform SINT_TO_FP<->UINT_TO_FP custom conversion after legalization

The SINT_TO_FP<->UINT_TO_FP combines for non-negative integers should only occur for legal ops once LegalOperations = true

No test case to hand, noticed when investigating PR38226 + PR38970

llvm-svn: 343405
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp