From dffd7429d719ad763271f334de33dd2ee14b1c16 Mon Sep 17 00:00:00 2001 From: Alexei Starovoitov Date: Sat, 24 Oct 2015 01:54:32 +0000 Subject: [PATCH] Merging r247951: ------------------------------------------------------------------------ r247951 | ast | 2015-09-17 15:18:08 -0700 (Thu, 17 Sep 2015) | 5 lines [bpf] expand indirect branches BPF instruction set doesn't have indirect branches. Expand them. Reported by John Fastabend. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_37@251174 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/BPF/BPFISelLowering.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Target/BPF/BPFISelLowering.cpp b/lib/Target/BPF/BPFISelLowering.cpp index 58498a1aec7..42e2b3f32c0 100644 --- a/lib/Target/BPF/BPFISelLowering.cpp +++ b/lib/Target/BPF/BPFISelLowering.cpp @@ -102,6 +102,7 @@ BPFTargetLowering::BPFTargetLowering(const TargetMachine &TM, setOperationAction(ISD::BR_CC, MVT::i64, Custom); setOperationAction(ISD::BR_JT, MVT::Other, Expand); + setOperationAction(ISD::BRIND, MVT::Other, Expand); setOperationAction(ISD::BRCOND, MVT::Other, Expand); setOperationAction(ISD::SETCC, MVT::i64, Expand); setOperationAction(ISD::SELECT, MVT::i64, Expand); -- 2.49.0