Skip to content

Commit f4664d2

Browse files
jmmartinezgit-crd
authored andcommitted
[NFC][SPIRV][IRTranslator] Replace leftover MF->getTarget().getTargetTriple().isSPIRV() with targetSupportsBF16Type(MF) (llvm#167704)
1 parent ed20488 commit f4664d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3482,7 +3482,7 @@ bool IRTranslator::translateAtomicCmpXchg(const User &U,
34823482

34833483
bool IRTranslator::translateAtomicRMW(const User &U,
34843484
MachineIRBuilder &MIRBuilder) {
3485-
if (!MF->getTarget().getTargetTriple().isSPIRV() && containsBF16Type(U))
3485+
if (containsBF16Type(U) && !targetSupportsBF16Type(MF))
34863486
return false;
34873487

34883488
const AtomicRMWInst &I = cast<AtomicRMWInst>(U);

0 commit comments

Comments
 (0)