[PTX] Another libcall patch
Nathan Sidwell
nathan@acm.org
Fri Nov 27 14:05:00 GMT 2015
I've committed this further cleanup of function decl recording. We were
recording libcalls during call expansion, but recording other calls during call
outputting. This moves all recording to the call outputting. The recording
helpers were a little confusing -- for intsance 'record_fndecl', was really
'maybe_record_fndecl', and in some cases the caller checked preconditions (like
being an actual fnddecl) whereas other cases the helper did the checking.
I've moved things around so that the caller always does the prechecking. I
broke the libcall hash manipulation out into a helper, in line with the other
helpers, and added a helper to deal with looking through symbol refs.
Finally expand_movdi had no need to register an fndecl itself -- it's already
calling maybe_convert_symbolic_operand, which does that.
nathan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trunk-ptx-libcall.patch
Type: text/x-patch
Size: 13040 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20151127/88ea6ea8/attachment.bin>
More information about the Gcc-patches
mailing list