Constant combine the output of identical function calls #130
Labels
difficulty:moderate
MIR
Issues related to the MIR (Mid level IR)
performance
Issues relating to performance
It happens often that we get identical calls to the same function, especially
find_program
. If we note that there are two calls to the same thing, we should make them references, consider this:This could be rewritten as:
Which would simplify the threaded lookup process.
This is related to #42, but that has more to do with putting the IR into a shape easy to consume in the backends. This needs to run earlier, and probably only targets
find_program
,dependency
, andcompiler.find_library()
, while that is really targeted at calls tobuild_targets
The text was updated successfully, but these errors were encountered: