[llvm-commits] [llvm-gcc] llvm-gcc patch for PR1582 (review only)

Zhou Sheng zhousheng00 at gmail.com
Thu Nov 8 17:03:43 PST 2007


Hi All,

This patch is for PR1582. As recent discuss on that pr, the C++ FE doesn't
track the restrict qualifier in the function declaration at all. When
llvm-gcc handling CALL_EXPR and emiting callInst instruction, it can't get
the "NoAlias" attribute, and hence insert a BitCast in CallInst. This patch
is to eliminate this bitcast.

Testcase attached here also.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20071108/6cba6c69/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-convert.cpp.patch
Type: text/x-patch
Size: 1772 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20071108/6cba6c69/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2007-11-08-CallFuncWithRestrictPtrArg.cpp
Type: text/x-c++src
Size: 223 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20071108/6cba6c69/attachment.cpp>


More information about the llvm-commits mailing list