[all-commits] [llvm/llvm-project] 24561f: Reland "[InstSimplify] Add basic constant folding ...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Mon Dec 9 03:16:35 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 24561f44df52fa792bac12a841f97c239a53b62f
      https://github.com/llvm/llvm-project/commit/24561f44df52fa792bac12a841f97c239a53b62f
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M llvm/lib/Analysis/ConstantFolding.cpp
    A llvm/test/Transforms/InstSimplify/sincos.ll

  Log Message:
  -----------
  Reland "[InstSimplify] Add basic constant folding for `llvm.sincos`" (#119192)

This calls into the existing constant folding for `llvm.sin` and
`llvm.cos`, which currently does not fold for any non-finite values, so
most tests are negative tests at the moment.

Note: The constant folding does not consider the `afn` fast-math flag
and will produce the same result regardless of if the flag is set.

This is a reland of #114527 that updates the syntax of one of the tests
from: `<float 1.000000e+00, float 1.000000e+00>` to `splat (float
1.000000e+00)`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list