HomePhabricator

Fix for PR32740 - Invalid floating type, unreachable between r300969 and r301029

Description

Fix for PR32740 - Invalid floating type, unreachable between r300969 and r301029

The bug was introduced by r301018 "[InstCombine] fadd double (sitofp x), y check that the promotion is valid". The patch didn't expect that fadd can be on vectors not necessarily scalars. Add vector support along with the test.

Details

Committed
apilipenkoApr 22 2017, 12:24 AM
Parents
rL301069: [APInt] Add WORD_MAX constant and use it instead of UINT64_MAX. NFC
Branches
Unknown
Tags
Unknown