[all-commits] [llvm/llvm-project] d03744: [DAG] visitSHL - use FoldConstantArithmetic to fol...
Simon Pilgrim via All-commits
all-commits at lists.llvm.org
Tue Aug 29 10:52:49 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d037445f3a2c6dc1842b5bfc1d5d81988c2f223d
https://github.com/llvm/llvm-project/commit/d037445f3a2c6dc1842b5bfc1d5d81988c2f223d
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2023-08-29 (Tue, 29 Aug 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Log Message:
-----------
[DAG] visitSHL - use FoldConstantArithmetic to fold constants in (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2) fold
Matches what we do in the (shl (mul x, c1), c2) -> (mul x, c1 << c2) fold as well as inside visitShiftByConstant
More information about the All-commits
mailing list