mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Uniformize the names of type predicates: rather than having isFloatTy and
isInteger, we now have isFloatTy and isIntegerTy. Requested by Chris! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96223 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1606,7 +1606,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
const Type *Ty = Op0->getType();
|
||||
|
||||
// icmp's with boolean values can always be turned into bitwise operations
|
||||
if (Ty->isInteger(1)) {
|
||||
if (Ty->isIntegerTy(1)) {
|
||||
switch (I.getPredicate()) {
|
||||
default: llvm_unreachable("Invalid icmp instruction!");
|
||||
case ICmpInst::ICMP_EQ: { // icmp eq i1 A, B -> ~(A^B)
|
||||
@@ -1650,7 +1650,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
unsigned BitWidth = 0;
|
||||
if (TD)
|
||||
BitWidth = TD->getTypeSizeInBits(Ty->getScalarType());
|
||||
else if (Ty->isIntOrIntVector())
|
||||
else if (Ty->isIntOrIntVectorTy())
|
||||
BitWidth = Ty->getScalarSizeInBits();
|
||||
|
||||
bool isSignBit = false;
|
||||
|
Reference in New Issue
Block a user