[llvm-commits] [patch] fix PR 2682
Rafael Espindola
espindola at google.com
Fri Aug 22 06:48:57 PDT 2008
The attached patch fixes 2682. I am sending it for review before
committing because it is mostly a hack.
GCC uses optimization information to emit warnings. In this particular
case, it assumes that by the time __builtin_prefetch is expanded,
__builtin_constant_p will have been folded.
This is not the case in llvm-gcc, since pass_fold_builtins is
disabled. This patch enables just the __builtin_constant_p case in it.
OK for trunk? I was not able to test with a full bootstrap since
llvm-gcc bootstrap is broken on linux x86-64 at 55175.
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constant.patch
Type: text/x-diff
Size: 1438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080822/2b052139/attachment.patch>
More information about the llvm-commits
mailing list