[llvm] [LLVM] Slay undead copysign code (PR #111269)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 31 15:23:34 PDT 2024


================
@@ -1,28 +0,0 @@
-; RUN: llc -verify-machineinstrs < %s -mcpu=ppc | FileCheck %s
----------------
workingjubilee wrote:

according to https://github.com/llvm/llvm-project/commit/1cf48ab811b341cf2ee3d7e9a9c97cf2d7b53f64
> Don't form PPC CTR-based loops around a copysignl call
copysign/copysignf never become function calls (because the SDAG expansion code
does not lower to the corresponding function call, but rather directly
implements the associated logic), but copysignl almost always is lowered into a
call to the requested libm functon (and, thus, might clobber CTR).

So it seemed like it was now irrelevant.

https://github.com/llvm/llvm-project/pull/111269


More information about the llvm-commits mailing list