llvm-6502/test
David Majnemer 5a57dbef33 IndVarSimplify: check if loop invariant expansion can trap
IndVarSimplify is willing to move divide instructions outside of their
loop bodies if they are invariant of the loop.  However, it may not be
safe to expand them if we do not know if they can trap.

Instead, check to see if it is not safe to expand the instruction and
skip the expansion.

This fixes PR16041.

Testcase by Rafael Ávila de Espíndola.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183239 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-04 17:51:58 +00:00
..
Analysis Unit test for SCEV fix r182989, PR16130. 2013-05-31 16:42:41 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen ARM: Fix crash in ARM backend inside of ARMConstantIslandPass 2013-06-04 17:46:15 +00:00
DebugInfo [llvm-symbolizer] Avoid calling slow getSymbolSize for Mach-O files. Assume that symbols with zero size are in fact large enough. 2013-06-04 07:57:38 +00:00
ExecutionEngine Enable mcjit tests on ppc64 when building with cmake. 2013-06-03 19:17:21 +00:00
Feature
FileCheck
Instrumentation [msan] Handle mixed track-origins and keep-going settings (llvm part). 2013-05-31 12:04:29 +00:00
Integer
JitListener
Linker Extend RemapInstruction and friends to take an optional new parameter, a ValueMaterializer. 2013-05-28 15:17:05 +00:00
MC ARM: permit upper-case BE/LE on setend instruction 2013-05-31 15:58:45 +00:00
Object [Object/COFF] Fix Windows .lib name handling. 2013-06-03 00:27:03 +00:00
Other
TableGen
tools Change how we iterate over relocations on ELF. 2013-05-30 03:05:14 +00:00
Transforms IndVarSimplify: check if loop invariant expansion can trap 2013-06-04 17:51:58 +00:00
Unit
Verifier
YAMLParser
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh