OSDN Git Service

bpf: Support subregister definition check on PHI node
authorYonghong Song <yhs@fb.com>
Tue, 13 Mar 2018 06:47:04 +0000 (06:47 +0000)
committerYonghong Song <yhs@fb.com>
Tue, 13 Mar 2018 06:47:04 +0000 (06:47 +0000)
commit0f4700096fbf314555b39b4850373b9e9fa3f3fa
tree93b919972ef8b5eae8516a04ebd46d139bb63202
parent5e02a7311a054a91c2453b695b9b7df3804963c3
bpf: Support subregister definition check on PHI node

This patch relax the subregister definition check on Phi node.
Previously, we just cancel the optimizatoin when the definition is Phi
node while actually we could further check the definitions of incoming
parameters of PHI node.

This helps catch more elimination opportunities.

Signed-off-by: Jiong Wang <jiong.wang@netronome.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@327368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/BPF/BPFMIPeephole.cpp