[PATCH] D64125: [RISCV] Support @llvm.readcyclecounter() Intrinsic

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 02:57:15 PDT 2019


lebedev.ri added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/readcyclecounter.ll:20
+; RV32I-NEXT:  # %bb.2:
+; RV32I-NEXT:    .cfi_def_cfa_offset 0
+; RV32I-NEXT:    ret
----------------
If you change
```
-define i64 @test_builtin_readcyclecounter() {
+define i64 @test_builtin_readcyclecounter() nounwind {
```
you should get rid of this CFI noise


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64125/new/

https://reviews.llvm.org/D64125





More information about the llvm-commits mailing list