summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/FunctionIndexObjectFile.cpp
diff options
context:
space:
mode:
authorWeiming Zhao <weimingz@codeaurora.org>2015-11-19 02:45:18 +0000
committerWeiming Zhao <weimingz@codeaurora.org>2015-11-19 02:45:18 +0000
commitb69babd01efbf19994a849c2f746c84341726e14 (patch)
treee2c8c6f50084e81f5201b5d284d6e50a8458e9f5 /llvm/lib/Object/FunctionIndexObjectFile.cpp
parent9b2f53e39e992058bc2e5add5648aae1b9cad565 (diff)
downloadbcm5719-llvm-b69babd01efbf19994a849c2f746c84341726e14.tar.gz
bcm5719-llvm-b69babd01efbf19994a849c2f746c84341726e14.zip
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
Diffstat (limited to 'llvm/lib/Object/FunctionIndexObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud