MCPcopy Create free account
hub / github.com/akyoto/q / IsPure

Method IsPure

src/ssa/Load.go:29–31  ·  view source on GitHub ↗

IsPure returns false because loads read from memory and two equal loads may yield different values.

()

Source from the content-addressed store, hash-verified

27// IsPure returns true because loads have no side effects.
28// Dead loads can be removed and two equal loads only deduplicate if
29// nothing between them modifies the memory.
30func (l *Load) IsPure() bool {
31 return true
32}
33
34// Inputs returns the memory address of the load.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected