diff options
author | Craig Topper <craig.topper@sifive.com> | 2023-01-14 00:31:14 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2023-01-14 00:31:14 -0800 |
commit | e25f2287dd7d6854b0bbfb9878fecdbbad21038d (patch) | |
tree | c0197b67477f462bc19c28ad9fb0bac9f071d6f6 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | 79858d1908b53560941b7d8f4d98e5ac781c674b (diff) | |
download | llvm-e25f2287dd7d6854b0bbfb9878fecdbbad21038d.zip llvm-e25f2287dd7d6854b0bbfb9878fecdbbad21038d.tar.gz llvm-e25f2287dd7d6854b0bbfb9878fecdbbad21038d.tar.bz2 |
[InstCombine] Add test coverage for (icmp slt/sge (1 << Y), 0). NFC
We already optimize the slt case to (icmp eq Y, BitWidth-1), but
we miss optimizing sge because it canonicalizes to (icmp sgt (1 << X), 1)
first.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions