llvm-project/llvm/test
Sander de Smalen 97215fe3f4 [CostModel] Express cost(urem) as cost(div+mul+sub) when set to Expand.
The Legalizer expands the operations of urem/srem into a div+mul+sub or divrem
when those are legal/custom. This patch changes the cost-model to reflect that
cost.

Since there is no 'divrem' Instruction in LLVM IR, the cost of divrem
is assumed to be the same as div+mul+sub since the three operations will
need to be executed at runtime regardless.

Patch co-authored by David Sherwood (@david-arm)

Reviewed By: RKSimon, paulwalker-arm

Differential Revision: https://reviews.llvm.org/D103799
2021-07-07 14:40:28 +01:00
..
Analysis [CostModel] Express cost(urem) as cost(div+mul+sub) when set to Expand. 2021-07-07 14:40:28 +01:00
Assembler Revert "[DebugInfo] Enforce implicit constraints on `distinct` MDNodes" 2021-07-02 15:57:07 -07:00
Bindings
Bitcode Revert "[DebugInfo] Enforce implicit constraints on `distinct` MDNodes" 2021-07-02 15:57:07 -07:00
BugPoint
CodeGen [AIX] Use VSSRC/VSFRC Register classes for f32/f64 callee arguments on P8 and above 2021-07-07 09:18:20 -04:00
DebugInfo [DebugInfo][InstrRef][3/4] Produce DBG_INSTR_REFs for all variable locations 2021-07-06 18:31:38 +01:00
Demangle [Demangle][Rust] Parse dot suffix 2021-06-18 09:29:45 +02:00
Examples [Orc] At CBindings for LazyRexports 2021-07-01 21:52:05 +02:00
ExecutionEngine [JITLink][ELF] Move ELF section and symbol parsing into ELFLinkGraphBuilder. 2021-06-29 09:59:49 +10:00
Feature
FileCheck
Instrumentation [DebugInfo] CGP+HWasan: Handle dbg.values with duplicate location ops 2021-07-05 10:35:19 +01:00
Integer
JitListener
LTO LTO: Export functions referenced by non-canonical CFI jump tables 2021-06-08 14:57:43 -07:00
Linker [IR] convert warn-stack-size from module flag to fn attr 2021-06-21 15:09:25 -07:00
MC [MCParser][z/OS] Mark a few tests as unsupported for the z/OS Target 2021-07-05 11:06:52 -04:00
MachineVerifier CodeGen: Print/parse LLTs in MachineMemOperands 2021-06-30 16:54:13 -04:00
Object [AMDGPU] Add gfx1035 target 2021-06-24 14:32:41 -04:00
ObjectYAML [WebAssembly] Rename event to tag 2021-06-17 20:34:19 -07:00
Other [OpaquePtr] Support opaque pointers in intrinsic type check 2021-07-01 18:26:41 +02:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen [TableGen] Allow identical MnemonicAliases with no predicate 2021-06-30 10:53:39 +01:00
ThinLTO/X86 [ThinLTO] Respect ClearDSOLocalOnDeclarations for unimported functions 2021-07-02 17:08:25 -07:00
Transforms [IndVarSimplify][X86] Regenerate loop-invariant-conditions.ll test checks 2021-07-07 13:58:28 +01:00
Unit
Verifier [OpaquePtr] Support VecOfAnyPtrsToElt intrinsics 2021-07-01 20:35:33 +02:00
YAMLParser
tools [llvm-readobj][test] Improve grouped option test 2021-07-06 23:02:33 -07:00
.clang-format
CMakeLists.txt [Orc] At CBindings for LazyRexports 2021-07-01 21:52:05 +02:00
TestRunner.sh
lit.cfg.py [Orc] At CBindings for LazyRexports 2021-07-01 21:52:05 +02:00
lit.site.cfg.py.in Make lit configs relocatable again after c747b7d1d9 2021-06-22 15:27:32 -04:00