llvm-project/llvm/lib/Transforms
Weiming Zhao b69babd01e Fix bug 25440: GVN assertion after coercing loads
Optimizations like LoadPRE in GVN will insert new instructions.
If the insertion point is in a already processed BB, they should
get a value number explicitly. If the insertion point is after
current instruction, then just leave it. However, current GVN framework
has no support for it.
In this patch, we just bail out if a VN can't be found.

Dfferential Revision: http://reviews.llvm.org/D14670

A    test/Transforms/GVN/pr25440.ll
M    lib/Transforms/Scalar/GVN.cpp

llvm-svn: 253536
2015-11-19 02:45:18 +00:00
..
Hello Revert r240137 (Fixed/added namespace ending comments using clang-tidy. NFC) 2015-06-23 09:49:53 +00:00
IPO [LTO] Add an early run of functionattrs 2015-11-18 11:24:42 +00:00
InstCombine Change memcpy/memset/memmove to have dest and source alignments. 2015-11-18 22:17:24 +00:00
Instrumentation Change memcpy/memset/memmove to have dest and source alignments. 2015-11-18 22:17:24 +00:00
ObjCARC ObjCARC: Remove implicit ilist iterator conversions, NFC 2015-10-19 23:20:14 +00:00
Scalar Fix bug 25440: GVN assertion after coercing loads 2015-11-19 02:45:18 +00:00
Utils [SimplifyLibCalls] New trick: pow(x, 0.5) -> sqrt(x) under -ffast-math. 2015-11-18 23:21:32 +00:00
Vectorize Fix several long lines (>80) in LoopVectorize.cpp. NFC. 2015-11-19 00:32:30 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile