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

bpf: Improve expanding logic in LowerSELECT_CC



LowerSELECT_CC is not generating optimal Select_Ri pattern at the moment. It
is not guaranteed to place ConstantNode at RHS which would miss matching
Select_Ri.

A new testcase added into the existing select_ri.ll, also there is an
existing case in cmp.ll which would be improved to use Select_Ri after this
patch, it is adjusted accordingly.

Reported-by: default avatarAlexei Starovoitov <alexei.starovoitov@gmail.com>
Reviewed-by: default avatarYonghong Song <yhs@fb.com>
Signed-off-by: default avatarJiong Wang <jiong.wang@netronome.com>
llvm-svn: 324560
parent 8ddd922d
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