[PATCH] D132987: [PPC] Add RM as call preserved register

Guozhi Wei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 28 08:31:09 PDT 2022


Carrot added a comment.

If RM is not preserved by a function call, then in the following example

  void foo(double a, double b, double *p) {
    *p++ = a + b;
    bar();
    *p = a + b;
  }

The expression a+b can not be CSEd, right?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132987



More information about the llvm-commits mailing list