[llvm] [SelectionDAG] Move SelectionDAG::getAllOnesConstant out of line. NFC (PR #102995)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 12 23:45:54 PDT 2024
================
@@ -675,10 +675,7 @@ class SelectionDAG {
bool isTarget = false, bool isOpaque = false);
SDValue getAllOnesConstant(const SDLoc &DL, EVT VT, bool IsTarget = false,
- bool IsOpaque = false) {
- return getConstant(APInt::getAllOnes(VT.getScalarSizeInBits()), DL, VT,
----------------
arsenm wrote:
Can't this just use -1 and let the implementation extend to APInt if it's larger?
https://github.com/llvm/llvm-project/pull/102995
More information about the llvm-commits
mailing list