[all-commits] [llvm/llvm-project] 093b26: [SimplifyLibCalls] Return Value from optimizeSinCo...

aeubanks via All-commits all-commits at lists.llvm.org
Tue Mar 14 15:17:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 093b2640ea90466073be76208fad70960e026b36
      https://github.com/llvm/llvm-project/commit/093b2640ea90466073be76208fad70960e026b36
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2023-03-14 (Tue, 14 Mar 2023)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/SimplifyLibCalls.h
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    M llvm/test/Transforms/InstCombine/sincospi.ll

  Log Message:
  -----------
  [SimplifyLibCalls] Return Value from optimizeSinCosPi when making change

Or else InstCombine can incorrectly report that no change has been made.

This optimization doesn't really fit into InstCombine since it optimizes multiple instructions at once; there's likely a more comprehensive fix.

Reviewed By: nikic

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




More information about the All-commits mailing list