Opened 10 years ago

Last modified 10 years ago

#2809 assigned defect

Detect and optimize useless tuple construction

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: high Milestone: Future
Component: Frontend Version: trunk
Keywords: Cc: paronsson

Description

The following pattern occurs often in the code, and constructs a new tuple (b,c) even though this is costly and not necessary:

case (a,(b,c)) then (a,(b,c));

It should be possible to detect this an optimize it away.

Change History (2)

comment:1 by Martin Sjölund, 10 years ago

Owner: changed from somebody to Martin Sjölund
Status: newassigned

comment:2 by Martin Sjölund, 10 years ago

Summary: Detect an optimize useless tuple constructionDetect and optimize useless tuple construction
Note: See TracTickets for help on using tickets.