[PATCH] D77977: [InstCombine] Simplify calls with casted "returned" attribute
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 12 13:20:56 PDT 2020
lebedev.ri added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:4662
+ return replaceInstUsesWith(Call, ReturnedArg);
+ if (CallTy->isPointerTy() && RetArgTy->isPointerTy())
+ return replaceInstUsesWith(
----------------
Why only pointers?
https://llvm.org/docs/LangRef.html#parameter-attributes
> returned
> This indicates that the function always returns the argument as its return value. <...> The parameter and the function return type must be valid operands for the bitcast instruction.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77977/new/
https://reviews.llvm.org/D77977
More information about the llvm-commits
mailing list