[all-commits] [llvm/llvm-project] a001e9: [SimplifyLibCalls] Don't try to manually reprocess...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jan 5 01:45:44 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a001e9718fd974859f2797a9f9ed7bf87d364e4f
      https://github.com/llvm/llvm-project/commit/a001e9718fd974859f2797a9f9ed7bf87d364e4f
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-01-05 (Fri, 05 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
    A llvm/test/Transforms/InstCombine/pr77064.ll

  Log Message:
  -----------
  [SimplifyLibCalls] Don't try to manually reprocess calls

The current code for reprocessing the result of fortified libcall
simplifications is not correct, because we might simplify to an
argument of the original call, and if that is again a libcall,
mistakenly think that this is actually the simplification result.

Instead of trying to fix this, simply remove the code entirely,
because InstCombine nowadays correctly handles reprocessing of
SimplifyLibCall results.

Fixes https://github.com/llvm/llvm-project/issues/77064.




More information about the All-commits mailing list