mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Reduce dyn_cast<> to isa<> or cast<> where possible.
No functional change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234586 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -694,10 +694,9 @@ static void computeKnownBitsFromAssume(Value *V, APInt &KnownZero,
|
||||
// We're running this loop for once for each value queried resulting in a
|
||||
// runtime of ~O(#assumes * #values).
|
||||
|
||||
assert(isa<IntrinsicInst>(I) &&
|
||||
dyn_cast<IntrinsicInst>(I)->getIntrinsicID() == Intrinsic::assume &&
|
||||
assert(I->getCalledFunction()->getIntrinsicID() == Intrinsic::assume &&
|
||||
"must be an assume intrinsic");
|
||||
|
||||
|
||||
Value *Arg = I->getArgOperand(0);
|
||||
|
||||
if (Arg == V && isValidAssumeForContext(I, Q)) {
|
||||
|
Reference in New Issue
Block a user