[llvm] [InstCombine] Remove transformation on call instruction where return value need void to non-void conversion (PR #98536)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 18:02:58 PDT 2024
================
@@ -4233,9 +4231,6 @@ bool InstCombinerImpl::transformConstExprCastCall(CallBase &Call) {
AttributeSet FnAttrs = CallerPAL.getFnAttrs();
- if (NewRetTy->isVoidTy())
- Caller->setName(""); // Void type should not have a name.
----------------
yozhu wrote:
Yes this would necessary now after we have tightened the condition above to skip transformation only when return value has uses.
https://github.com/llvm/llvm-project/pull/98536
More information about the llvm-commits
mailing list