Skip to content
Commit e91802f3 authored by Yonghong Song's avatar Yonghong Song
Browse files

bpf: New post-RA peephole optimization pass to eliminate bad RA codegen



This new pass eliminate identical move:

  MOV rA, rA

This is particularly possible to happen when sub-register support
enabled. The special type cast insn MOV_32_64 involves different
register class on src (i32) and dst (i64), RA could generate useless
instruction due to this.

This pass also could serve as the bast for further post-RA optimization.

Signed-off-by: default avatarJiong Wang <jiong.wang@netronome.com>
Signed-off-by: default avatarYonghong Song <yhs@fb.com>
llvm-svn: 327370
parent 80b882ec
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment