forked from OSchip/llvm-project
InferAddressSpaces: Remove unnecessary check for ConstantInt
The IR is invalid if this isn't a constant since immarg was added. llvm-svn: 368893
This commit is contained in:
parent
3f9d044686
commit
0eac2a2963
|
@ -269,8 +269,8 @@ bool InferAddressSpaces::rewriteIntrinsicOperands(IntrinsicInst *II,
|
|||
case Intrinsic::amdgcn_ds_fadd:
|
||||
case Intrinsic::amdgcn_ds_fmin:
|
||||
case Intrinsic::amdgcn_ds_fmax: {
|
||||
const ConstantInt *IsVolatile = dyn_cast<ConstantInt>(II->getArgOperand(4));
|
||||
if (!IsVolatile || !IsVolatile->isZero())
|
||||
const ConstantInt *IsVolatile = cast<ConstantInt>(II->getArgOperand(4));
|
||||
if (!IsVolatile->isZero())
|
||||
return false;
|
||||
|
||||
LLVM_FALLTHROUGH;
|
||||
|
|
Loading…
Reference in New Issue