Hello,
I’m looking for some paper or text book mention about instruction sink but there are nothing.
So, I think that instruction sink is not a formal term in compiler field.
I already searching some related words in text book like Randy Aleen & Ken Kennedy - Optimizing compilers for modern architectures and William Wulf, Richard Johnsson, Charles Weinstock, Steven Hobbs, Charles Geschke - The Design of an Optimizing Compiler.
And I search some key words like “compiler optimization execute when needed”, “compiler instruction sink” and “compiler combine source sink” (which source and sink are the terminology used in Optimizing compilers for modern architectures) on google, still nothing.
I know that this algorithm implemented in instcombine, which is also called peephole optimization. I google both of them and still get nothing.
Please help me about this issue. Searching some academic aricles about the optimization algorithm in LLVM is important for me.