[all-commits] [llvm/llvm-project] 8e7745: [DAG] visitShiftByConstant - replace constant dete...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Mon Oct 17 08:19:30 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8e77458578d601cf714c0f444667f83ea2840621
https://github.com/llvm/llvm-project/commit/8e77458578d601cf714c0f444667f83ea2840621
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2022-10-17 (Mon, 17 Oct 2022)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Log Message:
-----------
[DAG] visitShiftByConstant - replace constant detection with FoldConstantArithmetic
Instead of checking that an operand is constant/opaque before calling getNode() and then checking that the result is a constant, just use FoldConstantArithmetic which will just early-out if the operands are not constant foldable.
More information about the All-commits
mailing list