[InstSimplify] improve getTrue/getFalse; NFCI
authorSanjay Patel <spatel@rotateright.com>
Sun, 16 Apr 2017 17:43:11 +0000 (17:43 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 16 Apr 2017 17:43:11 +0000 (17:43 +0000)
commit35ed2413afa160ae5a7cb612af4f9aa0108944d3
treed575ee06d53c000809249ce959460545045b01a8
parent6380f0ffce37645e16c3b9492f0698ff8c39d7a1
[InstSimplify] improve getTrue/getFalse; NFCI

The ConstantInt version has the same assert, and using null/allOnes is likely less efficient.
The only advantage of these local variants (and there's probably a better way to achieve this?)
is to save typing "ConstantInt::" over and over.

llvm-svn: 300426
llvm/lib/Analysis/InstructionSimplify.cpp