[all-commits] [llvm/llvm-project] eb3d9f: [SelDag] Add isIntOrFPConstant helper function.
Florian Hahn via All-commits
all-commits at lists.llvm.org
Sun Mar 28 05:21:08 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: eb3d9f2eb619132d75fbe228c7aac1eee1667f3c
https://github.com/llvm/llvm-project/commit/eb3d9f2eb619132d75fbe228c7aac1eee1667f3c
Author: Florian Hahn <flo at fhahn.com>
Date: 2021-03-28 (Sun, 28 Mar 2021)
Changed paths:
M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Log Message:
-----------
[SelDag] Add isIntOrFPConstant helper function.
This patch adds a new isIntOrFPConstant helper function to check if a
SDValue is a integer of FP constant. This pattern is used in various
places.
There also are places that incorrectly just check for integer constants,
e.g. D99384, so hopefully this helper will help people avoid that issue.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D99428
More information about the All-commits
mailing list