1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/unittests/CodeGen
Eli Friedman a4739d6687 [CodeGen] Fix hashing for MO_ExternalSymbol MachineOperands.
We were hashing the string pointer, not the string, so two instructions
could be identical (isIdenticalTo), but have different hash codes.

This showed up as a very rare, non-deterministic assertion failure
rehashing a DenseMap constructed by MachineOutliner.  So there's no
"real" testcase, just a unittest which checks that the hash function
behaves correctly.

I'm a little scared fixing this is going to cause a regression in
outlining or MachineCSE, but hopefully we won't run into any issues.

Differential Revision: https://reviews.llvm.org/D61975

llvm-svn: 362281
2019-06-01 00:08:54 +00:00
..
GlobalISel GlobalISel: Define integer min/max instructions 2019-05-17 18:36:31 +00:00
AArch64SelectionDAGTest.cpp [SelectionDAG] Use KnownBits::computeForAddSub/computeForAddCarry 2019-04-15 07:19:11 +00:00
CMakeLists.txt Restore ability for C++ API users to Enable IPRA. 2019-02-22 20:59:07 +00:00
DIEHashTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LowLevelTypeTest.cpp GlobalISel: Try to make legalize rules more useful for vectors 2019-02-07 17:25:51 +00:00
MachineInstrBundleIteratorTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachineInstrTest.cpp [Subtarget] Merge ProcSched and ProcDesc arrays in MCSubtargetInfo into a single array. 2019-03-05 18:54:38 +00:00
MachineOperandTest.cpp [CodeGen] Fix hashing for MO_ExternalSymbol MachineOperands. 2019-06-01 00:08:54 +00:00
ScalableVectorMVTsTest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TargetOptionsTest.cpp Try again to fix memory leak in r354692 2019-02-23 03:25:37 +00:00
TypeTraitsTest.cpp Update files that were mistakenly added with the old file header. 2019-02-11 08:07:32 +00:00