================ @@ -307,8 +340,10 @@ class SrcSafetyAnalysis { SrcState createEntryState() { SrcState S(NumRegs, RegsToTrackInstsFor.getNumTrackedRegisters()); - for (MCPhysReg Reg : BC.MIB->getTrustedLiveInRegs()) - S.SafeToDerefRegs |= BC.MIB->getAliases(Reg, /*OnlySmaller=*/true); + for (MCPhysReg Reg : BC.MIB->getTrustedLiveInRegs()) { + S.TrustedRegs |= BC.MIB->getAliases(Reg, /*OnlySmaller=*/true); + S.SafeToDerefRegs = S.TrustedRegs; + } ---------------- kbeyls wrote:
Nit pick: I guess `S.SafeToDerefRegs = S.TrustedRegs` could be move to after the loop, rather than inside the loop? https://github.com/llvm/llvm-project/pull/134146 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits