diff options
author | Sanjay Patel <spatel@rotateright.com> | 2014-07-09 16:34:54 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2014-07-09 16:34:54 +0000 |
commit | 58814445d4a43d9ab8a2adba5309d6affd378101 (patch) | |
tree | ec454fefef2405c02bd6e3fb6470c8f7e4b1a8e6 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | df734cdd39cd3ad90f4f4466ddb497ffc14c1258 (diff) | |
download | llvm-58814445d4a43d9ab8a2adba5309d6affd378101.zip llvm-58814445d4a43d9ab8a2adba5309d6affd378101.tar.gz llvm-58814445d4a43d9ab8a2adba5309d6affd378101.tar.bz2 |
Fix for PR20059 (instcombine reorders shufflevector after instruction that may trap)
In PR20059 ( http://llvm.org/pr20059 ), instcombine eliminates shuffles that are necessary before performing an operation that can trap (srem).
This patch calls isSafeToSpeculativelyExecute() and bails out of the optimization in SimplifyVectorOp() if needed.
Differential Revision: http://reviews.llvm.org/D4424
llvm-svn: 212629
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions