[InstCombine] Refactor getFlippedStrictnessPredicateAndConstant() out of canonicalize...
authorRoman Lebedev <lebedev.ri@gmail.com>
Wed, 14 Aug 2019 09:57:20 +0000 (09:57 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Wed, 14 Aug 2019 09:57:20 +0000 (09:57 +0000)
commit32f1e1a01d9ad8d00345eb005e362eedf47bb1fb
tree7f2809ee1c63d708e1e5d677cd5bc14e3ce9d3aa
parentc50959431928097bbd675ff3a2346813982db176
[InstCombine] Refactor getFlippedStrictnessPredicateAndConstant() out of canonicalizeCmpWithConstant(), NFCI

I'd like to use it elsewhere, hopefully without reinventing the wheel.
No functional change intended so far.

llvm-svn: 368820
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/lib/Transforms/InstCombine/InstCombineInternal.h