If we're comparing a value against zero, strip away any zero-extension and perform the comparison on the pre-extended value
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D121472
[X86] combineCMP - peek through zero-extensions for X86cmp(zext(x0),0) zero tests (PR38960) ClosedPublic Authored by RKSimon on Mar 11 2022, 8:58 AM.
Details Summary If we're comparing a value against zero, strip away any zero-extension and perform the comparison on the pre-extended value
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 11 2022, 8:45 PM This revision was landed with ongoing or failed builds.Mar 13 2022, 4:39 AM Closed by commit rGad3a7654dc7d: [X86] combineCMP - peek through zero-extensions for X86cmp(zext(x0),0) zero… (authored by RKSimon). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 414923 llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/comi-flags.ll
|