1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 12:02:58 +02:00
llvm-mirror/test/CodeGen
Sanjay Patel 8b07d115c8 ignore duplicate divisor uses when transforming into reciprocal multiplies (PR24141)
PR24141: https://llvm.org/bugs/show_bug.cgi?id=24141
contains a test case where we have duplicate entries in a node's uses() list.

After r241826, we use CombineTo() to delete dead nodes when combining the uses into
reciprocal multiplies, but this fails if we encounter the just-deleted node again in
the list.

The solution in this patch is to not add duplicate entries to the list of users that
we will subsequently iterate over. For the test case, this avoids triggering the
combine divisors logic entirely because there really is only one user of the divisor.

Differential Revision: http://reviews.llvm.org/D11345

llvm-svn: 243500
2015-07-28 23:28:22 +00:00
..
AArch64 AArch64: be careful of large immediates when optimising cmps. 2015-07-28 22:42:32 +00:00
AMDGPU AMDGPU: Don't try to use LDS/vector for private if pointer value stored 2015-07-28 18:47:00 +00:00
ARM [ARM] Define subtarget feature strict-align. 2015-07-28 22:44:28 +00:00
BPF
CPP
Generic Move unit tests to target specific directories. 2015-07-28 17:32:49 +00:00
Hexagon [Hexagon] Generate MUX from conditional transfers when dot-new not possible 2015-07-20 21:23:25 +00:00
Inputs
Mips [mips][FastISel] Fix call lowering by bailing out on "fastcc" calls. 2015-07-28 21:43:31 +00:00
MIR MIR Serialization: Serialize the target index machine operands. 2015-07-28 23:02:45 +00:00
MSP430
NVPTX [BranchFolding] do not iterate the aliases of virtual registers 2015-07-22 04:16:52 +00:00
PowerPC Fix typo. 2015-07-28 20:38:29 +00:00
SPARC [SPARC] Cleanup handling of the Y/ASR registers. 2015-07-08 16:25:12 +00:00
SystemZ
Thumb [ARM] Define subtarget feature strict-align. 2015-07-28 22:44:28 +00:00
Thumb2 ARMLoadStoreOptimizer: Create LDRD/STRD on thumb2 2015-07-21 00:18:59 +00:00
WebAssembly WebAssembly: add a generic CPU 2015-07-27 23:25:54 +00:00
WinEH [WinEH] Strip the \01 character from the __CxxFrameHandler3 thunk name 2015-07-13 17:55:14 +00:00
X86 ignore duplicate divisor uses when transforming into reciprocal multiplies (PR24141) 2015-07-28 23:28:22 +00:00
XCore