[PATCH] D86952: [MIRVRegNamer] MachineInstr StableHashing.
Puyan Lotfi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 09:23:26 PDT 2020
plotfi marked an inline comment as done.
plotfi added inline comments.
================
Comment at: llvm/lib/CodeGen/MachineStableHash.cpp:151
+/// A stable hash value for machine instructions.
+/// Returns 0 if no stable hash could be computed.
+/// The hashing and equality testing functions ignore definitions so this is
----------------
lanza wrote:
> That seems kinda error prone. `VRegRenamer::getInstructionOpcodeHash` would just propagate forward a failure blindly.
The namer is resigned to handle collisions, but yeah I agree. If a hash comes out as 0 it should hit an assert.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86952/new/
https://reviews.llvm.org/D86952
More information about the llvm-commits
mailing list