commit | 5b77f0dac11a720f9c430a51bcc69313ad57ee98 | [log] [tgz] |
---|---|---|
author | Mon P Wang <wangmp@apple.com> | Wed Feb 10 23:37:45 2010 +0000 |
committer | Mon P Wang <wangmp@apple.com> | Wed Feb 10 23:37:45 2010 +0000 |
tree | f7a8cd41b3dce90d4cdef376869adfb8e4983a60 | |
parent | 989908fbacab3462520eb55a4fb7c0778689ea08 [diff] |
The previous fix of widening divides that trap was too fragile as it depends on custom lowering and requires that certain types exist in ValueTypes.h. Modified widening to check if an op can trap and if so, the widening algorithm will apply only the op on the defined elements. It is safer to do this in widening because the optimizer can't guarantee removing unused ops in some cases. llvm-svn: 95823