commit | 646c9d7be1f52032bb3101b726b722f024c223af | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Sat Aug 12 16:41:08 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Sat Aug 12 16:41:08 2017 +0000 |
tree | 1969cf386f7a006bf9c874030f2aca020772e0cd | |
parent | 0fa72c3eef1ee892aef1534220975fcfc0189cf7 [diff] |
[BDCE] clear poison generators after turning a value into zero (PR33695, PR34037) nsw, nuw, and exact carry implicit assumptions about their operands, so we need to clear those after trivializing a value. We decided there was no danger for llvm.assume or metadata, so there's just a comment about that. This fixes miscompiles as shown in: https://bugs.llvm.org/show_bug.cgi?id=33695 https://bugs.llvm.org/show_bug.cgi?id=34037 Differential Revision: https://reviews.llvm.org/D36592 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@310779 91177308-0d34-0410-b5e6-96231b3b80d8