[llvm] [AssignmentTracking] Skip large types in redundant debug info pruning (PR #74329)
Paul T Robinson via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 7 08:32:12 PST 2023
================
@@ -2295,33 +2295,41 @@ removeRedundantDbgLocsUsingBackwardScan(const BasicBlock *BB,
DebugAggregate Aggr =
getAggregate(FnVarLocs.getVariable(RIt->VariableID));
uint64_t SizeInBits = Aggr.first->getSizeInBits().value_or(0);
+ uint64_t SizeInBytes = SizeInBits + 7 / 8;
----------------
pogo59 wrote:
(Just to embarrass my friend: Note that 7/8 == 0. But divideCeil fixes that.)
https://github.com/llvm/llvm-project/pull/74329
More information about the llvm-commits
mailing list