[llvm-commits] [PATCH] KNRPromotion fix when FLOAT_TYPE_SIZE is not smaller than DOUBLE_TYPE_SIZE
Mikael Lepistö
mikael.lepisto at tut.fi
Tue Jun 9 05:56:05 PDT 2009
Hi,
I found out that
void function(value)
float value; {}
generated following bitcode
define void @function(double %value1)
In IRC channel this was though to be correct for platforms where
DOUBLE_TYPE_SIZE is bigger than float size e.g. x86. However in our
tce-llvm-gcc cross-compiler DOUBLE_TYPE_SIZE is set to be 32 bits as
FLOAT_TYPE_SIZE. So in this case correct bitcode should have been
define void @function(float %value1)
So here's patch attached for fixing the problem.
Mikael Lepistö
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KNRPromotion_when_double_is_same_size_with_float.patch
Type: text/x-diff
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090609/505f0cbc/attachment.patch>
More information about the llvm-commits
mailing list