| commit | 23019d10067506639ea7221855befbfdd6a25d75 | [log] [tgz] |
|---|---|---|
| author | Sanjay Patel <spatel@rotateright.com> | Tue May 24 14:18:49 2016 +0000 |
| committer | Sanjay Patel <spatel@rotateright.com> | Tue May 24 14:18:49 2016 +0000 |
| tree | e04095c4e84b8e6321ee0c82128cf6b9ef8d38aa | |
| parent | 0295fbe1bba602566d7ebc605feda2edde812840 [diff] |
[ValueTracking, InstSimplify] extend isKnownNonZero() to handle vector constants Similar in spirit to D20497 : If all elements of a constant vector are known non-zero, then we can say that the whole vector is known non-zero. It seems like we could extend this to FP scalar/vector too, but isKnownNonZero() says it only works for integers and pointers for now. Differential Revision: http://reviews.llvm.org/D20544 llvm-svn: 270562