Skip to content

Instantly share code, notes, and snippets.

@sxhmilyoyo
Last active May 11, 2018 15:02
Show Gist options
  • Save sxhmilyoyo/26beff80a6c1aae3a845e146291895d1 to your computer and use it in GitHub Desktop.
Save sxhmilyoyo/26beff80a6c1aae3a845e146291895d1 to your computer and use it in GitHub Desktop.
struct copyStatement{
int used;
struct variable *result;
struct variable *arg;
}copyTable[COPYTABLESTOTAL];
// look up the copyTables
struct copyStatement *lookupCopyTables();
// build copyTables
void buildCopyTable(struct quad *q);
// eliminate the copy statement
void eliminateCopy(struct quad *q);
// eliminate copy statements for copy statements
void eliminateCopy4CS(struct quad *q);
// main function for copy statements elimination
void copyElimination();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment