]> granicus.if.org Git - llvm/commit
[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)
commitc2b0974b936e8e722f8bb9d985a9a171acb191d5
treec7828f730e842fbfde497c9ec578e1e2ef7bd359
parent9c08b69245cd1aa04041d1581da31538c0a50489
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300426 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp