[PATCH] D41463: [CodeGen] Add a new pass for PostRA sink
Sebastian Pop via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 16 10:57:04 PDT 2018
sebpop added a comment.
Krzysztof, here is the assembly before this patch:
f1: // @f1
// %bb.0: // %b0
{
p0 = cmp.gtu(r0,#3); if (p0.new) jump:nt .LBB0_2
r2 = r0
}
// %bb.1: // %b2
{
r0 = +mpyi(r1,#7)
r1 = #0
jumpr r31
}
.LBB0_2: // %b1
{
call f0
r1:0 = combine(r2,##g0)
allocframe(r29,#0):raw
}
after the patch:
f1: // @f1
// %bb.0: // %b0
{
p0 = cmp.gtu(r0,#3); if (p0.new) jump:nt .LBB0_2
}
// %bb.1: // %b2
{
r0 = +mpyi(r1,#7)
r1 = #0
jumpr r31
}
.LBB0_2: // %b1
{
r2 = r0
allocframe(#0)
}
{
call f0
r1:0 = combine(r2,##g0)
}
https://reviews.llvm.org/D41463
More information about the llvm-commits
mailing list