[llvm] [LLVM] Slay undead copysign code (PR #111269)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 5 22:41:56 PDT 2024
================
@@ -438,7 +442,15 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) {
break;
}
case Intrinsic::copysign: {
- ReplaceFPIntrinsicWithCall(CI, "copysignf", "copysign", "copysignl");
+ switch (CI->getArgOperand(0)->getType()->getTypeID()) {
+ default:
+ assert(false && "only need a copysign libcall for arch-specific floats");
----------------
workingjubilee wrote:
My hypothesis is still that it makes a 0% chance 100 times more likely... so, 0%... but if I am wrong, well, best to discover that quickly.
https://github.com/llvm/llvm-project/pull/111269
More information about the llvm-commits
mailing list