]> granicus.if.org Git - llvm/commit
[CGP] refactor optimizeCmpExpression (NFCI)
authorSanjay Patel <spatel@rotateright.com>
Sun, 3 Feb 2019 13:48:03 +0000 (13:48 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sun, 3 Feb 2019 13:48:03 +0000 (13:48 +0000)
commit5c0c1bee3adb8579f9676f936d0b09332848d0aa
tree95735a7ad0d9ff75eabcf912115d520a31a6d5fb
parentbff7bbeefc1d315c0ac71c50ca5cf54907763bfd
[CGP] refactor optimizeCmpExpression (NFCI)

This is not truly NFC because we are bailing out without
a TLI now. That should not be a real concern though because
there should be a TLI in any real-world scenario.

That seems better than passing around a pointer and then
checking it for null-ness all over the place.

The motivation is to fix what appears to be an unintended
restriction on the uaddo transform -
hasMultipleConditionRegisters() shouldn't be reason to limit
the transform.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352988 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp