diff options
| author | Nick Lewycky <nicholas@mxc.ca> | 2011-08-14 04:51:49 +0000 |
|---|---|---|
| committer | Nick Lewycky <nicholas@mxc.ca> | 2011-08-14 04:51:49 +0000 |
| commit | 746e317953f268a17a2b8f6b95658e0861e73254 (patch) | |
| tree | 9e4b6a16e8e0561621e7540005f0c2f3cd876e42 /llvm/lib/Transforms | |
| parent | 0be3970804a4c4db7be3fe08cd30072c8cee125d (diff) | |
| download | bcm5719-llvm-746e317953f268a17a2b8f6b95658e0861e73254.tar.gz bcm5719-llvm-746e317953f268a17a2b8f6b95658e0861e73254.zip | |
This transform is not safe. Thanks to Eli for pointing that out!
llvm-svn: 137575
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/InstCombine/InstructionCombining.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp index 41666361141..41d542af685 100644 --- a/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp +++ b/llvm/lib/Transforms/InstCombine/InstructionCombining.cpp @@ -294,14 +294,7 @@ bool InstCombiner::SimplifyAssociativeOrCommutative(BinaryOperator &I) { I.setOperand(1, Folded); // Conservatively clear the optional flags, since they may not be // preserved by the reassociation. - if (MaintainNoSignedWrap(I, C1, C2) && Op0->hasNoSignedWrap() && - Op1->hasNoSignedWrap()) { - New->setHasNoSignedWrap(true); - I.clearSubclassOptionalData(); - I.setHasNoSignedWrap(true); - } else { - I.clearSubclassOptionalData(); - } + I.clearSubclassOptionalData(); Changed = true; continue; |

