commit | f044d1884d9819430906e921490cd62530731fb6 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Tue Jan 29 16:39:23 2019 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Tue Jan 29 16:39:23 2019 +0000 |
tree | 9864baa67be7ac31a48c918011c0fae22e943316 | |
parent | 5d71fc5d7b5ffe2323418a09db6eddaf84d6c662 [diff] |
[InstCombine] add tests for ext-of-bool + add/sub; NFC We should choose one of these as canonical: %z = zext i1 %cmp to i32 %r = sub i32 %x, %z => %s = sext i1 %cmp to i32 %r = add i32 %x, %s The test comments assume that the zext form is better, but we can adjust that if we decide to go the other way. llvm-svn: 352515