[llvm] [InstCombine] Swap out range metadata to range attribute for cttz/ctlz/ctpop (PR #88776)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 15 23:24:10 PDT 2024
================
@@ -450,6 +452,10 @@ void Instruction::dropPoisonGeneratingFlags() {
cast<TruncInst>(this)->setHasNoUnsignedWrap(false);
cast<TruncInst>(this)->setHasNoSignedWrap(false);
break;
+
+ case Instruction::Call:
+ case Instruction::Invoke:
+ cast<CallBase>(this)->removeRetAttr(Attribute::Range);
----------------
andjo403 wrote:
I was thinking that as all other places we call hasRetAttr so the instruction is still causing poison.
https://github.com/llvm/llvm-project/pull/88776
More information about the llvm-commits
mailing list