[PATCH] D65605: Use MCRegister in MCRegisterInfo's interfaces
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 1 16:54:45 PDT 2019
arsenm added inline comments.
================
Comment at: llvm/include/llvm/MC/MCRegister.h:72
+ static inline unsigned getTombstoneKey() { return ~0U - 1; }
+ static unsigned getHashValue(const unsigned& Val) { return Val * 37U; }
+
----------------
Why *37?
================
Comment at: llvm/lib/Target/Hexagon/BitTracker.cpp:343
assert(Register::isPhysicalRegister(RR.Reg));
- unsigned PhysR = (RR.Sub == 0) ? RR.Reg : TRI.getSubReg(RR.Reg, RR.Sub);
+ unsigned PhysR =
+ (RR.Sub == 0) ? Register(RR.Reg) : TRI.getSubReg(RR.Reg, RR.Sub);
----------------
Result should be Register?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65605/new/
https://reviews.llvm.org/D65605
More information about the llvm-commits
mailing list