[PATCH] D155053: [AggressiveInstCombine] Fold strcmp for short string literals tests
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 11:27:28 PDT 2023
nikic accepted this revision.
nikic added a comment.
This revision is now accepted and ready to land.
LGTM
================
Comment at: llvm/test/Transforms/AggressiveInstCombine/strcmp.ll:20
+;
+ %call = call i32 @strcmp(ptr %C, ptr noundef @s0)
+ %cmp = icmp eq i32 %call, 0
----------------
Drop all the `noundef` attributes, they shouldn't be relevant for this transform.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155053/new/
https://reviews.llvm.org/D155053
More information about the llvm-commits
mailing list