[llvm] [RISCV] Add integer RISCVISD::SELECT_CC to canCreateUndefOrPoison and isGuaranteedNotToBeUndefOrPoison. (PR #84693)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 21 01:43:51 PDT 2024
================
@@ -3786,7 +3786,12 @@ bool TargetLowering::isGuaranteedNotToBeUndefOrPoisonForTargetNode(
Op.getOpcode() == ISD::INTRINSIC_VOID) &&
"Should use isGuaranteedNotToBeUndefOrPoison if you don't know whether Op"
" is a target node!");
- return false;
+
+ return !canCreateUndefOrPoisonForTargetNode(Op, DemandedElts, DAG, PoisonOnly,
+ /*ConsiderFlags*/ true, Depth) &&
----------------
arsenm wrote:
```suggestion
/*ConsiderFlags=*/ true, Depth) &&
```
https://github.com/llvm/llvm-project/pull/84693
More information about the llvm-commits
mailing list