1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/unittests/CodeGen/GlobalISel
Reid Kleckner e88b0fafb4 Use pragmas to work around MSVC x86_32 debug miscompile bug
Halide users reported this here: https://llvm.org/pr46176
I reported the issue to MSVC here:
https://developercommunity.visualstudio.com/content/problem/1179643/msvc-copies-overaligned-non-trivially-copyable-par.html

This codepath is apparently not covered by LLVM's unit tests, so I added
coverage in a unit test.

If we want to support this configuration going forward, it means that is
in general not safe to pass a SmallVector<T, N> by value if alignof(T)
is greater than 4. This doesn't appear to come up often because passing
a SmallVector by value is inefficient and not idiomatic: it copies the
inline storage. In this case, the SmallVector<LLT,4> is captured by
value by a lambda, and the lambda is passed by value into std::function,
and that's how we hit the bug.

Differential Revision: https://reviews.llvm.org/D87475
2020-09-10 14:50:01 -07:00
..
CMakeLists.txt Reland [FileCheck] Move FileCheck implementation out of LLVMSupport into its own library 2020-09-01 14:59:28 +02:00
ConstantFoldingTest.cpp GlobalISel: Prepare to allow other target unit tests 2020-03-23 15:02:30 -04:00
CSETest.cpp GlobalISel: Fix insert point in CSEMIRBuilder unit test 2020-07-29 15:08:42 -04:00
GISelMITest.cpp AMDGPU/GlobalISel: Implement computeNumSignBitsForTargetInstr 2020-03-23 15:02:30 -04:00
GISelMITest.h Reland [FileCheck] Move FileCheck implementation out of LLVMSupport into its own library 2020-09-01 14:59:28 +02:00
GISelUtilsTest.cpp GlobalISel: Rewrite getLCMType 2020-07-20 21:06:30 -04:00
KnownBitsTest.cpp [KnownBits] Implement accurate unsigned and signed max and min 2020-09-07 09:09:01 +01:00
LegalizerHelperTest.cpp GlobalISel: Implement fewerElementsVector for G_INSERT_VECTOR_ELT 2020-08-18 13:51:19 -04:00
LegalizerInfoTest.cpp Use pragmas to work around MSVC x86_32 debug miscompile bug 2020-09-10 14:50:01 -07:00
LegalizerTest.cpp [globalisel] Add lost debug locations verifier 2020-04-16 10:43:35 -07:00
MachineIRBuilderTest.cpp [GlobalISel] Add G_ABS 2020-08-11 16:34:37 +01:00
PatternMatchTest.cpp GlobalISel: Add matcher for G_SHL 2020-03-29 14:03:07 -04:00