diff options
author | Dale Johannesen <dalej@apple.com> | 2009-06-04 20:53:52 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-06-04 20:53:52 +0000 |
commit | 37bc85f89a6ffdbf7c90d67ea770a7648b09ac20 (patch) | |
tree | 0b99d81f9e75bfffdf266a67d0521e89247444d7 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | fa0ac19b8284cb8e3987f05a9f2d50394dc83fa2 (diff) | |
download | bcm5719-llvm-37bc85f89a6ffdbf7c90d67ea770a7648b09ac20.tar.gz bcm5719-llvm-37bc85f89a6ffdbf7c90d67ea770a7648b09ac20.zip |
Fix FP_TO_UINT->i32 on ppc32 -mcpu=g5. This was
using Promote which won't work because i64 isn't
a legal type. It's easy enough to use Custom, but
then we have the problem that when the type
legalizer is promoting FP_TO_UINT->i16, it has no
way of telling it should prefer FP_TO_SINT->i32
to FP_TO_UINT->i32. I have uncomfortably hacked
this by making the type legalizer choose FP_TO_SINT
when both are Custom.
This fixes several regressions in the testsuite.
llvm-svn: 72891
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions