[llvm] [AArch64] Don't tail call memset if it would convert to a bzero. (PR #98969)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 11:42:54 PDT 2024
================
@@ -144,7 +145,16 @@ bool attributesPermitTailCall(const Function *F, const Instruction *I,
/// optimization.
bool returnTypeIsEligibleForTailCall(const Function *F, const Instruction *I,
const ReturnInst *Ret,
- const TargetLoweringBase &TLI);
+ const TargetLoweringBase &TLI,
+ bool ReturnsFirstArg = false);
+
+/// Check whether B is a bitcast of a pointer type to another pointer type,
+/// which is equal to A.
+bool isPointerBitcastEqualTo(const Value *A, const Value *B);
----------------
efriedma-quic wrote:
Is `isPointerBitcastEqualTo` really necessary? With opaque pointer types, we should never see a bitcast like this.
https://github.com/llvm/llvm-project/pull/98969
More information about the llvm-commits
mailing list