Skip to content

Commit bf19a11

Browse files
committed
[bpf] expand indirect branches
BPF instruction set doesn't have indirect branches. Expand them. Reported by John Fastabend. llvm-svn: 247951
1 parent 8315b1c commit bf19a11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/BPF/BPFISelLowering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ BPFTargetLowering::BPFTargetLowering(const TargetMachine &TM,
102102

103103
setOperationAction(ISD::BR_CC, MVT::i64, Custom);
104104
setOperationAction(ISD::BR_JT, MVT::Other, Expand);
105+
setOperationAction(ISD::BRIND, MVT::Other, Expand);
105106
setOperationAction(ISD::BRCOND, MVT::Other, Expand);
106107
setOperationAction(ISD::SETCC, MVT::i64, Expand);
107108
setOperationAction(ISD::SELECT, MVT::i64, Expand);

0 commit comments

Comments
 (0)