Closed
Description
-
Move implementations from SelectionDAG.cpp FoldValue into APInt.h APIntOps
llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Lines 6012 to 6016 in deff460
llvm-project/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Lines 6018 to 6022 in deff460
-
Add APIntTest unit test coverage
-
Update DivisionByConstantTest.cpp (this might require the lhs/rhs operands to be extended to the same bitwidth)
-
Update KnownBitsTest.cpp to use APIntOps::mulhs/u in exhaustive tests
-
Update mlir ArithOps.cpp + SPIRVCanonicalization.cpp to use APIntOps::mulhs/mulhu