This pattern came up in PR36682 / D44390
https://bugs.llvm.org/show_bug.cgi?id=36682
https://reviews.llvm.org/D44390
https://godbolt.org/g/oKvT5H
See also D44416
Paths
| Differential D44424
[InstCombine] peek through unsigned FP casts for zero-equality compares (PR36682) ClosedPublic Authored by lebedev.ri on Mar 13 2018, 6:20 AM.
Details Summary This pattern came up in PR36682 / D44390 See also D44416
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 18 2018, 7:41 AM Comment Actions Thank you for the review!
Closed by commit rL327799: [InstCombine] peek through unsigned FP casts for zero-equality compares… (authored by lebedevri). · Explain WhyMar 18 2018, 8:55 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 138169 lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/cast-unsigned-icmp-eqcmp-0.ll
|
Don't need braces for the single-line 'if' clause.