diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-19 21:55:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-19 21:55:26 +0000 |
commit | c9a005807ab46d03a3b24f84220542c6eb84e9d1 (patch) | |
tree | f32a38e134ade7125ca0ded5c4377b4da147f57b /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | dbe664adcddd8610952968d86791478c874cf1cd (diff) |
div/rem by zero and div/rem overflow are both undefined according to
langref. Constant fold them to undef instead of trying to preserve
the trap. This fixes PR3354.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62534 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions