[all-commits] [llvm/llvm-project] 442b0d: [LIBC] Clarify namespace of `thread_exit` in `pthr...

goldsteinn via All-commits all-commits at lists.llvm.org
Fri Apr 14 11:14:53 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 442b0d9db4df4913b3e21dad30b21746964f8e1a
      https://github.com/llvm/llvm-project/commit/442b0d9db4df4913b3e21dad30b21746964f8e1a
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M libc/src/pthread/pthread_exit.cpp

  Log Message:
  -----------
  [LIBC] Clarify namespace of `thread_exit` in `pthread_exit`

Just add `__llvm_libc::` to makes things clearer.

Reviewed By: sivachandra

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


  Commit: c8a29c2dfc56648a79807e0d475c7906f03cb73f
      https://github.com/llvm/llvm-project/commit/c8a29c2dfc56648a79807e0d475c7906f03cb73f
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M libc/test/integration/src/pthread/pthread_once_test.cpp

  Log Message:
  -----------
  [LIBC] Actually assert no errors in `pthread_call_once` in its test; NFC

Just seemed to be missing an assertion.

Reviewed By: sivachandra

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


  Commit: db0706b7ccceeb805c3217b4e48e6b1dddc2bc4c
      https://github.com/llvm/llvm-project/commit/db0706b7ccceeb805c3217b4e48e6b1dddc2bc4c
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M llvm/test/Transforms/InstCombine/binop-select.ll

  Log Message:
  -----------
  [InstCombine] Add tests for deducing constants based on condition in select; NFC

Reviewed By: nikic

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


  Commit: 82f082761383907d4ceefad5ab50f0758fbe6a46
      https://github.com/llvm/llvm-project/commit/82f082761383907d4ceefad5ab50f0758fbe6a46
  Author: Noah Goldstein <goldstein.w.n at gmail.com>
  Date:   2023-04-14 (Fri, 14 Apr 2023)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/binop-select.ll

  Log Message:
  -----------
  [InstCombine] Make `FoldOpIntoSelect` handle non-constants and use condition to deduce constants.

Make the fold use the information present in the condition for deducing constants i.e:
```
%c = icmp eq i8 %x, 10
%s = select i1 %c, i8 3, i8 2
%r = mul i8 %x, %s
```

If we fold the `mul` into the select, on the true side we insert `10` for `%x` in the `mul`.

Reviewed By: nikic

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


Compare: https://github.com/llvm/llvm-project/compare/40e356d67fb2...82f082761383


More information about the All-commits mailing list