Issue 242565
Summary BPFTargetLowering::LowerTRAP illegally modifies the IR
Labels backend:BPF
Assignees
Reporter arsenm
    This code is illegal: https://github.com/llvm/llvm-project/blob/49e7f33c235acdd8b158b4f38e8e107ce0ee57de/llvm/lib/Target/BPF/BPFISelLowering.cpp#L885

CodeGen is not allowed to mutate the IR. This is unnecessary just to emit a call to a function. This can instead emit a call to the ExternalSymbol by name without the IR reference 
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to