[PATCH] D101011: [Attr] Add "noipa" function attribute

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 22 12:10:39 PDT 2021


xbolva00 added a comment.

>> so the output IR is different from the input IR

No I dont mean input IR. I mean

  int foo(int x) __attribute__((noinline)) {
      return x * 2;
  }
  
  int a(int x) {
      return foo(x);
  }

I mean Clang will codegen:

  define dso_local i32 @foo(i32 %0) #0 {
    %2 = shl nsw i32 %0, 1
    ret i32 %2
  }
  
  attributes #0 = { noipa noinline }




Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101011



More information about the llvm-commits mailing list