diff options
author | Alexei Starovoitov <alexei.starovoitov@gmail.com> | 2015-10-24 01:54:32 +0000 |
---|---|---|
committer | Alexei Starovoitov <alexei.starovoitov@gmail.com> | 2015-10-24 01:54:32 +0000 |
commit | bc860efaa4aa3b6a6766397b079f3243bc52f32f (patch) | |
tree | 091ca92e30964f84d0fdd1255fdd2662a9d52ccf | |
parent | f9f09a29d317ceb476b964075982d3adb0e6f254 (diff) | |
download | llvm-bc860efaa4aa3b6a6766397b079f3243bc52f32f.tar.gz |
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.
------------------------------------------------------------------------
llvm-svn: 251174
-rw-r--r-- | llvm/lib/Target/BPF/BPFISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp index 58498a1aec7d..42e2b3f32c0c 100644 --- a/llvm/lib/Target/BPF/BPFISelLowering.cpp +++ b/llvm/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); |