[all-commits] [llvm/llvm-project] 898152: [AggressiveInstCombine] Fold strcmp for short stri...
Maksim Kita via All-commits
all-commits at lists.llvm.org
Wed Jul 19 08:12:44 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8981520b19f2d2fe3d2bc80cf26318ee6b5b7473
https://github.com/llvm/llvm-project/commit/8981520b19f2d2fe3d2bc80cf26318ee6b5b7473
Author: Maksim Kita <kitaetoya at gmail.com>
Date: 2023-07-19 (Wed, 19 Jul 2023)
Changed paths:
M llvm/include/llvm/Analysis/ValueTracking.h
M llvm/include/llvm/Transforms/AggressiveInstCombine/AggressiveInstCombine.h
M llvm/lib/Analysis/ValueTracking.cpp
M llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
M llvm/test/Transforms/AggressiveInstCombine/strcmp.ll
Log Message:
-----------
[AggressiveInstCombine] Fold strcmp for short string literals
Fold strcmp() against 1-char string literals.
This designates AggressiveInstCombine as the pass for libcalls
simplifications that may need to change the control flow graph.
Fixes https://github.com/llvm/llvm-project/issues/58003.
Differential Revision: https://reviews.llvm.org/D154725
More information about the All-commits
mailing list