[llvm] [LVI][SCCP][CVP] Add basic ConstantFPRange support (PR #111544)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 8 12:20:31 PST 2024
================
@@ -233,21 +233,22 @@ static Value *getValueOnEdge(LazyValueInfo *LVI, Value *Incoming,
// value can never be that constant. In that case replace the incoming
// value with the other value of the select. This often allows us to
// remove the select later.
+ if (!SI->getType()->isFPOrFPVectorTy()) {
----------------
arsenm wrote:
Maybe better to make it an isIntOrIntVectorTy. Does this handle the pointer case below?
https://github.com/llvm/llvm-project/pull/111544
More information about the llvm-commits
mailing list