Refactor: Simplify boolean expressions in llvm IR
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2015 19:51:23 +0000 (19:51 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 23 Mar 2015 19:51:23 +0000 (19:51 +0000)
commit16ff2dadb01309a90fe6c830b3b18a7fbfadac92
tree04c50739ef9921c61d70ee8723f17397acee31f0
parentb370250f03ab4acdc271d3114076c0e97023eee6
Refactor: Simplify boolean expressions in llvm IR

Simplify boolean expressions using `true` and `false` with `clang-tidy`

Patch by Richard Thomson with a few other simplifications to fix
else-after-returns in the surrounding code.

Differential Revision: http://reviews.llvm.org/D8527

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233005 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/Instructions.cpp