We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bcc414 commit 8fc25f7Copy full SHA for 8fc25f7
llvm/lib/CodeGen/MachineInstr.cpp
@@ -630,6 +630,10 @@ uint32_t MachineInstr::copyFlagsFromInstruction(const Instruction &I) {
630
if (I.getMetadata(LLVMContext::MD_unpredictable))
631
MIFlags |= MachineInstr::MIFlag::Unpredictable;
632
633
+ if (const CallInst *CI = dyn_cast<CallInst>(&I)) {
634
+ MIFlags |=
635
+ CI->hasFnAttr(llvm::Attribute::StrictFP) ? MachineInstr::NoFPExcept : 0;
636
+ }
637
return MIFlags;
638
}
639
0 commit comments