Displaying 1 result from an estimated 1 matches for "outlined_ir_func".
2020 Sep 01
2
[RFC] Framework for Finding and Using Similarity at the IR Level
...s an example of extraction and consolidation, if the following two blocks are extracted, which each have a different constant in the second operand of the first add,
%1 = add i32 %a, 10
%2 = add i32 %1, %a
%1 = add i32 %a, 11
%2 = add i32 %1, %a
The extracted function would be:
define internal @outlined_ir_func(i32 %a, i32 %b) {
entry:
%1 = add i32 %a, %b
%2 = add i32 %1, %a
ret void
}
And calls of:
call void @outlined_ir_func(i32 %a, 10)
call void @outlined_ir_func(i32 %a, 11)
For values that are used outside of the region, but are created inside the region, a register that has a pointer to a loc...