[all-commits] [llvm/llvm-project] 06105f: Pre-commit test cases missing SSHLSAT/USHLSAT fold...
Björn Pettersson via All-commits
all-commits at lists.llvm.org
Tue Feb 1 01:52:18 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 06105f2ef1a9278d16e916d5f011731ad73f6abd
https://github.com/llvm/llvm-project/commit/06105f2ef1a9278d16e916d5f011731ad73f6abd
Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
Date: 2022-02-01 (Tue, 01 Feb 2022)
Changed paths:
A llvm/test/CodeGen/AArch64/sshl_sat.ll
A llvm/test/CodeGen/AArch64/ushl_sat.ll
Log Message:
-----------
Pre-commit test cases missing SSHLSAT/USHLSAT folds. NFC
Commit: 38858790467e5e8d9e7894b26c0d05ec4516c4cb
https://github.com/llvm/llvm-project/commit/38858790467e5e8d9e7894b26c0d05ec4516c4cb
Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
Date: 2022-02-01 (Tue, 01 Feb 2022)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
M llvm/test/CodeGen/AArch64/sshl_sat.ll
M llvm/test/CodeGen/AArch64/ushl_sat.ll
Log Message:
-----------
[DAGCombine] Add simple folds for SSHLSAT/USHLSAT
Do "simplifyShift" and "FoldConstantArithmetic" folds for the SSHLSAT
and USHLSAT DAG nodes.
This includes folds such as:
(shlsat undef/poison, x) -> 0
(shlsat x, undef/poison) -> undef
(shlsat x, too_large_shamt) -> undef
(shlsat 0, x) -> 0
(shlsat x, 0) -> x
(shlsat c1, c2) -> c3
Differential Revision: https://reviews.llvm.org/D118603
Compare: https://github.com/llvm/llvm-project/compare/7fe4fa9a0a9b...38858790467e
More information about the All-commits
mailing list