summaryrefslogtreecommitdiff
path: root/test/CodeGen/Thumb2
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-03-09 15:02:25 +0000
committerSanjay Patel <spatel@rotateright.com>2017-03-09 15:02:25 +0000
commit4f7ea504789d9d2ef098c8307cd5f537135da87e (patch)
tree5f03e0d1e4b5da06f684c0c9af31e64e8efef171 /test/CodeGen/Thumb2
parent29ec93c7b6a00d8797dfcd3b0021e705df7ba045 (diff)
[DAG] recognize div/rem by 0 as undef before trying constant folding
As discussed in the review thread for rL297026, this is actually 2 changes that would independently fix all of the test cases in the patch: 1. Return undef in FoldConstantArithmetic for div/rem by 0. 2. Move basic undef simplifications for div/rem (simplifyDivRem()) before foldBinopIntoSelect() as a matter of efficiency. I will handle the case of vectors with any zero element as a follow-up. That change is the DAG sibling for D30665 + adding a check of vector elements to FoldConstantVectorArithmetic(). I'm deleting the test for PR30693 because it does not test for the actual bug any more (dangers of using bugpoint). Differential Revision: https://reviews.llvm.org/D30741 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297384 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Thumb2')
0 files changed, 0 insertions, 0 deletions