[all-commits] [llvm/llvm-project] b83a1e: [RISCV] Only emit .option when extension is supported

Piyou Chen via All-commits all-commits at lists.llvm.org
Mon Sep 18 00:30:29 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b83a1ed594f60953519c0eed53952d1abbcf65f3
  Author: Piyou Chen <piyou.chen at sifive.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
    M llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp
    M llvm/test/CodeGen/RISCV/riscv-func-target-feature.ll

  Log Message:
  [RISCV] Only emit .option when extension is supported

It maybe emit the .option directive without any follow up. Only emit the .option push/pop when there are supported extension difference between function and module.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D159399

More information about the All-commits mailing list