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)
commit1d28a759d95922068395de3a0a3d4353a63e2e07
treedd3fa01289c6ef757a88b8eaecc8e3e73865894d
parentc88bcdec432ca22258a1fd8af57d1e97dab7142f
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>
llvm-svn: 327368
llvm/lib/Target/BPF/BPFMIPeephole.cpp