commit | 2f11a75319f1dc66e364fd7e813f4daa62d644c4 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Wed Feb 28 16:36:24 2018 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Wed Feb 28 16:36:24 2018 +0000 |
tree | d299d70b81c78a3e4b0fee72f3034211be35b40a | |
parent | 61e1774e4edcab8faf60a025447b02437ef3ad4b [diff] |
[InstCombine] move constant check into foldBinOpIntoSelectOrPhi; NFCI Also, rename 'foldOpWithConstantIntoOperand' because that's annoyingly vague. The constant check is redundant in some cases, but it allows removing duplication for most of the calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326329 91177308-0d34-0410-b5e6-96231b3b80d8