commit | 370879ff090e3a692ed4bb68151fa299663ade26 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Aug 17 01:23:58 2016 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Aug 17 01:23:58 2016 +0000 |
tree | b4e06154faf0014719d6d2a0beeb1db7a9b08748 | |
parent | 578068576c82f5fdbce11a341c6ec60bc2ea1193 [diff] |
IPO: Swap || operands to avoid dereferencing end() IsOperandBundleUse conveniently indicates whether std::next(F->arg_begin(),UseIndex) will get to (or past) end(). Check it first to avoid dereferencing end(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278884 91177308-0d34-0410-b5e6-96231b3b80d8