[llvm] [LLVM] Slay undead copysign code (PR #111269)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 5 20:42:57 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");
----------------
topperc wrote:
Why assert instead of llvm_unreachable?
https://github.com/llvm/llvm-project/pull/111269
More information about the llvm-commits
mailing list