[llvm] [ConstantFold] Fold `ilogb` and `ilogbf` when the input parameter is a constant value. (PR #113014)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 19 06:12:13 PDT 2024
================
@@ -2131,7 +2133,8 @@ static Constant *ConstantFoldScalarCall1(StringRef Name,
}
#endif
- if (!Ty->isHalfTy() && !Ty->isFloatTy() && !Ty->isDoubleTy())
+ if (!Ty->isHalfTy() && !Ty->isFloatTy() && !Ty->isDoubleTy() &&
----------------
arsenm wrote:
Probably should just handle this case before here, or just delete the whole check.
This function could use some cleanup. Why isn't this using a switch over the intrinsic ID?
https://github.com/llvm/llvm-project/pull/113014
More information about the llvm-commits
mailing list