[PATCH] D121472: [X86] combineCMP - peek through zero-extensions for X86cmp(zext(x0),0) zero tests (PR38960)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 11 08:58:39 PST 2022
RKSimon created this revision.
RKSimon added reviewers: pengfei, craig.topper, spatel, lebedev.ri.
Herald added a subscriber: hiraditya.
Herald added a project: All.
RKSimon requested review of this revision.
Herald added a project: LLVM.
If we're comparing a value against zero, strip away any zero-extension and perform the comparison on the pre-extended value
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D121472
Files:
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/comi-flags.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121472.414674.patch
Type: text/x-patch
Size: 9303 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220311/aad735a1/attachment.bin>
More information about the llvm-commits
mailing list