This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tree-ssa] copy prop vs. debugging


[Usual caveat: Just lurking so feel free to ignore if I am not making sense]

Jason Merrill <jason@redhat.com> writes:

> When a temporary is copied into a variable, any dominated uses of that
> variable are replaced with uses of the temporary.

Isn't this always all usages (because of SSA form)?. If so can you not
do the inverse, i.e. replace all occurrences of (this SSA name of) the
temporary with (this SSA name of) the variable and then delete the
copy.

Jan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]