================
@@ -126,6 +126,14 @@ struct SimplifyQuery {
/// Otherwise always return false.
LLVM_ABI bool isUndefValue(Value *V) const;
+ bool expectsSignalingNaNs() const {
+ if (CxtI)
+ if (const BasicBlock *BB = CxtI->getParent())
+ if (const Function *F = BB->getParent())
----------------
spavloff wrote:
Simplified by using `getFunction`.
As `SimplifyQuery` may be used for optimizations before the instruction is
created, making `Function*` available as a field in `SimplifyQuery` indeed
could be a solution.
https://github.com/llvm/llvm-project/pull/199557
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits