Displaying 1 result from an estimated 1 matches for "do_a_simple_prime_test".
Did you mean:
do_a_simple_prime_test_i
2011 Nov 12
0
[LLVMdev] Inliner that does not destroy splitted cold edges
...ons can be optimized again.
Example: (function signatures in LLVM, content in PSEUDO-Code)
Starting point:
---------------
define i32 @findNumber() {
for i = 0 to 10000
if @numberFits(i) then
MYSTUFFINTHEFUNCTION
THATISREALLYCOLD
end
end
}
define i1 @numberFits() {
ret DO_A_SIMPLE_PRIME_TEST
}
After 1 and 2:
--------------
define i32 @findNumber() {
for i = 0 to 10000
if @numberFits(i) then
call @findNumber.c(i)
end
end
}
define void @findNumber.c(i32 i) {
MYSTUFFINTHEFUNCTION
THATISREALLYCOLD
}
define i1 @numberFits(i32 i) {
ret DO_A_SIMPLE_PRIME_TEST_i
}...