llvm-6502/test
Juergen Ributzka d10a9fb25a [DAG] During DAG legalization keep opaque constants even after expanding.
The included test case would return the incorrect results, because the expansion
of an shift with a constant shift amount of 0 would generate undefined behavior.

This is because ExpandShiftByConstant assumes that all shifts by constants with
a value of 0 have already been optimized away. This doesn't happen for opaque
constants and usually this isn't a problem, because opaque constants won't take
this code path - they are not supposed to. In the case that the opaque constant
has to be expanded by the legalizer, the legalizer would drop the opaque flag.
In this case we hit the limitations of ExpandShiftByConstant and create incorrect
code.

This commit fixes the legalizer by not dropping the opaque flag when expanding
opaque constants and adding an assertion to ExpandShiftByConstant to catch this
not supported case in the future.

This fixes <rdar://problem/16718472>

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207304 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-26 02:58:04 +00:00
..
Analysis Revert "blockfreq: Approximate irreducible control flow" 2014-04-25 23:16:58 +00:00
Assembler
Bindings
Bitcode Add 'musttail' marker to call instructions 2014-04-24 20:14:34 +00:00
BugPoint Mark llvm/test/BugPoint/compile-custom.ll as XFAIL:vg_leak. 2014-04-23 14:51:12 +00:00
CodeGen [DAG] During DAG legalization keep opaque constants even after expanding. 2014-04-26 02:58:04 +00:00
DebugInfo Unbreak the gdb buildbot by not lowering dbg.declare intrinsics for arrays. 2014-04-25 23:00:25 +00:00
ExecutionEngine
Feature
FileCheck
Instrumentation [asan] Fix instrumentation of x86 intel syntax inline assembly. 2014-04-24 09:56:15 +00:00
Integer
JitListener
Linker Fix DataLayout::operator==(). 2014-04-22 17:47:03 +00:00
LTO Add an -mattr option to the gold plugin to support subtarget features in LTO 2014-04-25 21:46:51 +00:00
MC [ARM64] Print preferred aliases for SFBM/UBFM in InstPrinter 2014-04-25 10:25:29 +00:00
Object
Other [PM] Add a new-PM-style CGSCC pass manager using the newly added 2014-04-21 11:12:00 +00:00
TableGen
tools ProfileData: Treat missing function counts as malformed 2014-04-25 02:45:33 +00:00
Transforms Revert commit r207302 since build failures 2014-04-26 02:03:17 +00:00
Unit
Verifier Add 'musttail' marker to call instructions 2014-04-24 20:14:34 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh