[llvm] [BOLT] Don't terminate on trap instruction for Linux kernel (PR #87021)

Amir Ayupov via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 28 16:54:22 PDT 2024


================
@@ -211,13 +211,6 @@ class X86MCPlusBuilder : public MCPlusBuilder {
     return false;
   }
 
-  // FIXME: For compatibility with old LLVM only!
-  bool isTerminator(const MCInst &Inst) const override {
-    unsigned Opcode = Inst.getOpcode();
-    return Info->get(Opcode).isTerminator() || X86::isUD1(Opcode) ||
-           X86::isUD2(Opcode);
----------------
aaupov wrote:

Assuming you tested that it's safe to drop ud1/ud2 from terminators.

https://github.com/llvm/llvm-project/pull/87021


More information about the llvm-commits mailing list