]> granicus.if.org Git - llvm/commit
Fix for PR32740 - Invalid floating type, unreachable between r300969 and r301029
authorArtur Pilipenko <apilipenko@azulsystems.com>
Sat, 22 Apr 2017 07:24:52 +0000 (07:24 +0000)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Sat, 22 Apr 2017 07:24:52 +0000 (07:24 +0000)
commit7ff25f5145f37ff504fa008bcea357def7fb1996
tree5aa5b6c4d21de1d6cb1afbab948e370a644c533c
parentb75bb044ee59f4f00de86ab3306c975c2c16ef17
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301070 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAddSub.cpp
test/Transforms/InstCombine/add-sitofp.ll