opt_dead_store: Optimizer: Dead Store Elimination.

Description Usage Arguments Examples

View source: R/opt-dead-store.R

Description

Performs one dead store elimination pass. Carefully examine the results after running this function!

Usage

1

Arguments

texts

A list of character vectors with the code to optimize.

Examples

1
2
3
4
5
6
7
8
code <- paste(
  "foo <- function() {",
  "  x <- 128 ^ 2",
  "  return(TRUE)",
  "}",
  sep = "\n"
)
cat(opt_dead_store(list(code))$codes[[1]])

rco documentation built on April 17, 2021, 5:06 p.m.