Searched refs:isLegalArithImmed (Results 1 – 3 of 3) sorted by relevance
28 constexpr bool isLegalArithImmed(const uint64_t C) { in isLegalArithImmed() function
569 if (isLegalArithImmed(C)) in tryAdjustICmpImmAndPred()638 if (isLegalArithImmed(C)) in tryAdjustICmpImmAndPred()883 if (RHSCst && isLegalArithImmed(RHSCst->Value.getSExtValue())) in trySwapICmpOperands()
3404 static bool isLegalArithImmed(uint64_t C) { in isLegalArithImmed() function3845 if (!isLegalArithImmed(C)) { in getAArch64Cmp()3853 isLegalArithImmed((uint32_t)(C - 1))) || in getAArch64Cmp()3855 isLegalArithImmed(C - 1ULL))) { in getAArch64Cmp()3864 isLegalArithImmed((uint32_t)(C - 1))) || in getAArch64Cmp()3865 (VT == MVT::i64 && C != 0ULL && isLegalArithImmed(C - 1ULL))) { in getAArch64Cmp()3874 isLegalArithImmed((uint32_t)(C + 1))) || in getAArch64Cmp()3876 isLegalArithImmed(C + 1ULL))) { in getAArch64Cmp()3885 isLegalArithImmed((uint32_t)(C + 1))) || in getAArch64Cmp()3887 isLegalArithImmed(C + 1ULL))) { in getAArch64Cmp()[all …]