[X86] Use APInt::isOneValue and ConstantSDNode::isOne. NFC
authorCraig Topper <craig.topper@gmail.com>
Mon, 30 Dec 2019 00:41:28 +0000 (16:41 -0800)
committerCraig Topper <craig.topper@gmail.com>
Mon, 30 Dec 2019 01:35:49 +0000 (17:35 -0800)
commit266cd7717c8126213a7560d26da5495053be90c0
treecb7702179d54e89a45090db6c7b818f2d2654d20
parentb2f19320dc1ca82acd3939b18c5c73ee8833b735
[X86] Use APInt::isOneValue and ConstantSDNode::isOne. NFC

These are implemented slightly more efficiently than comparing
to 1 in the case that the value is more than 64 bits.
llvm/lib/Target/X86/X86ISelLowering.cpp