commit | c8be5de456a3c2f7059c577a0504a17f191d9acc | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Wed Nov 15 19:12:01 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Wed Nov 15 19:12:01 2017 +0000 |
tree | 40482a6df8ab2eee67fea3af6586299480fe8bb2 | |
parent | 58a331a982f5354900df4dfe6691f67d40affc21 [diff] |
[InstCombine] trunc (binop X, C) --> binop (trunc X, C') Note that one-use and shouldChangeType() are checked ahead of the switch. Without the narrowing folds, we can produce inferior vector code as shown in PR35299: https://bugs.llvm.org/show_bug.cgi?id=35299 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@318323 91177308-0d34-0410-b5e6-96231b3b80d8