diff options
author | Artur Pilipenko <apilipenko@azulsystems.com> | 2017-04-21 18:45:25 +0000 |
---|---|---|
committer | Artur Pilipenko <apilipenko@azulsystems.com> | 2017-04-21 18:45:25 +0000 |
commit | 134d94f9a339be22c22af1014f00eeca03884675 (patch) | |
tree | 58e2c516f747813fb38fa830e5d4e0d4e65db954 /llvm/lib/Target/XCore/XCoreISelLowering.cpp | |
parent | c3ecc4b314ebbe163ee0d8d2dd52a03ec76adb01 (diff) | |
download | bcm5719-llvm-134d94f9a339be22c22af1014f00eeca03884675.tar.gz bcm5719-llvm-134d94f9a339be22c22af1014f00eeca03884675.zip |
[InstCombine] fadd double (sitofp x), y check that the promotion is valid
Doing these transformations check that the result of integer addition is representable in the FP type.
(fadd double (sitofp x), fpcst) --> (sitofp (add int x, intcst))
(fadd double (sitofp x), (sitofp y)) --> (sitofp (add int x, y))
This is a fix for https://bugs.llvm.org//show_bug.cgi?id=27036
Reviewed By: andrew.w.kaylor, scanon, spatel
Differential Revision: https://reviews.llvm.org/D31182
llvm-svn: 301018
Diffstat (limited to 'llvm/lib/Target/XCore/XCoreISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions