[llvm] [CodeGen] Add nneg and disjoint flags (PR #86650)
Thorsten Schütt via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 06:28:24 PDT 2024
================
@@ -1562,9 +1562,15 @@ bool IRTranslator::translateCast(unsigned Opcode, const User &U,
if (U.getType()->getScalarType()->isBFloatTy() ||
U.getOperand(0)->getType()->getScalarType()->isBFloatTy())
return false;
+
+ uint32_t Flags = 0;
+ if (isa<Instruction>(U)) {
+ const Instruction &I = cast<Instruction>(U);
----------------
tschuett wrote:
It is copy and paste. From the `isa` above, we know that it is an instruction.
https://github.com/llvm/llvm-project/pull/86650
More information about the llvm-commits
mailing list