llvm-project/llvm/test
Taewook Oh 923c216da5 [ICP] Do not attempt type matching for variable length arguments.
Summary:
When performing indirect call promotion, current implementation inspects "all" parameters of the callsite and attemps to match with the formal argument type of the callee function. However, it is not possible to find the type for variable length arguments, and the compiler crashes when it attemps to match the type for variable lenght argument.

It seems that the bug is introduced with D40658. Prior to that, the type matching is performed only for the parameters whose ID is less than callee->getFunctionNumParams(). The attached test case will crash without the patch.

Reviewers: mssimpso, davidxl, davide

Reviewed By: mssimpso

Subscribers: llvm-commits

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

llvm-svn: 330844
2018-04-25 17:19:21 +00:00
..
Analysis [AArch64] Add cost model test case for transpose 2018-04-23 18:21:29 +00:00
Assembler
Bindings [LLVM-C] DIBuilder Bindings For Variable Expressions 2018-04-23 22:31:49 +00:00
Bitcode [bcanalyzer] Recognize more stream types 2018-04-21 23:52:04 +00:00
BugPoint
CodeGen [AArch64][GlobalISel] Implement selection for the llvm.trap intrinsic. 2018-04-25 14:43:59 +00:00
DebugInfo Fix path separator checks on Windows 2018-04-24 22:03:07 +00:00
Examples
ExecutionEngine [RuntimeDyld][PowerPC] Fix a newly added test in r329355 2018-04-09 14:29:23 +00:00
Feature Remove the LoopInstSimplify pass (-loop-instsimplify) 2018-03-12 20:49:42 +00:00
FileCheck
Instrumentation [HWASan] Introduce non-zero based and dynamic shadow memory (LLVM). 2018-04-20 20:04:04 +00:00
Integer
JitListener
LTO Object: Don't mark alias unconditionally defined 2018-04-10 00:53:16 +00:00
Linker [llvm-link] Use WithColor for printing errors 2018-04-18 14:41:47 +00:00
MC [RISCV] Support "call" pseudoinstruction in the MC layer 2018-04-25 14:18:55 +00:00
Object [WebAssembly] Use section index in relocation section header 2018-04-24 18:11:36 +00:00
ObjectYAML [WebAssembly] libObject: Don't include the name the size of custom sections 2018-04-12 20:31:12 +00:00
Other [lit] Fix several Python 2/3 compatibility issues and tests 2018-04-07 00:21:28 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen TableGen: Support Intrinsic values in SearchableTable 2018-04-01 17:08:58 +00:00
ThinLTO/X86 [lit] Fix several Python 2/3 compatibility issues and tests 2018-04-07 00:21:28 +00:00
Transforms [ICP] Do not attempt type matching for variable length arguments. 2018-04-25 17:19:21 +00:00
Unit
Verifier Tweak an assert message in the verifier 2018-04-06 10:20:19 +00:00
YAMLParser
tools [llvm-mca][X86] Updated fma3 tests after rL330820 2018-04-25 13:19:04 +00:00
.clang-format
CMakeLists.txt Sort a target list a bit better. 2018-04-23 14:28:49 +00:00
TestRunner.sh
lit.cfg.py Enable debug fission for thinLTO linked via gold-plugin 2018-04-13 05:03:28 +00:00
lit.site.cfg.py.in