[llvm] [NFCI][SROA] reduce calls to getAllocatedType() (PR #177437)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 23 01:25:04 PST 2026
================
@@ -3573,7 +3570,7 @@ class AllocaSliceRewriter : public InstVisitor<AllocaSliceRewriter, bool> {
// Record this instruction for deletion.
Pass.DeadInsts.push_back(&II);
- Type *AllocaTy = NewAI.getAllocatedType();
+ Type *AllocaTy = NewAllocaTy;
----------------
nikic wrote:
Replace AllocyTy with NewAllocaTy entirely? We now use a mix of both variables below, which is confusing.
https://github.com/llvm/llvm-project/pull/177437
More information about the llvm-commits
mailing list