[all-commits] [llvm/llvm-project] 784f25: Precommit test files for D105344 (NFC)
Juneyoung Lee via All-commits
all-commits at lists.llvm.org
Tue Jul 27 17:22:46 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 784f258c0970ec978dc761e390b32cc2ef84d29d
https://github.com/llvm/llvm-project/commit/784f258c0970ec978dc761e390b32cc2ef84d29d
Author: Juneyoung Lee <aqjune at gmail.com>
Date: 2021-07-28 (Wed, 28 Jul 2021)
Changed paths:
A llvm/test/CodeGen/X86/setcc-freeze.ll
Log Message:
-----------
Precommit test files for D105344 (NFC)
Commit: 4f71f59bf3d9914188a11d0c41bedbb339d36ff5
https://github.com/llvm/llvm-project/commit/4f71f59bf3d9914188a11d0c41bedbb339d36ff5
Author: Juneyoung Lee <aqjune at gmail.com>
Date: 2021-07-28 (Wed, 28 Jul 2021)
Changed paths:
M llvm/include/llvm/CodeGen/SelectionDAGNodes.h
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/X86/setcc-freeze.ll
Log Message:
-----------
[DAGCombiner] Fold SETCC(FREEZE(x),const) to FREEZE(SETCC(x,const)) if SETCC is used by BRCOND
This patch adds a peephole optimization `SETCC(FREEZE(x),const)` => `FREEZE(SETCC(x,const))`
if the SETCC is only used by BRCOND.
Combined with `BRCOND(FREEZE(X)) => BRCOND(X)`, this leads to a nice improvement in the generated assembly when x is a masked loaded value.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D105344
Compare: https://github.com/llvm/llvm-project/compare/3223d41017f1...4f71f59bf3d9
More information about the All-commits
mailing list