diff options
author | Adrian Tong <adriantong1024@gmail.com> | 2022-06-08 18:20:42 +0000 |
---|---|---|
committer | Adrian Tong <adriantong1024@gmail.com> | 2022-06-16 16:04:20 +0000 |
commit | 55311801f06d33a71deae80209dd5640d5e7463e (patch) | |
tree | 2c35ade68e3525c909a32bcbcdfe001af3eb1ceb /clang/lib/CodeGen/CodeGenModule.h | |
parent | c5312fe3bec288add0bf920d9b2a668b9aa017b2 (diff) | |
download | llvm-55311801f06d33a71deae80209dd5640d5e7463e.zip llvm-55311801f06d33a71deae80209dd5640d5e7463e.tar.gz llvm-55311801f06d33a71deae80209dd5640d5e7463e.tar.bz2 |
Allow bitwidth difference when checking for isOneOrOneSplat.
This helps handling a case where the BUILD_VECTOR has i16 element type
and i32 constant operands
t2: v8i16 = setcc t8, t17, setult:ch
t3: v8i16 = BUILD_VECTOR Constant:i32<1>, ...
t4: v8i16 = and t2, t3
t5: v8i16 = add t8, t4
This can be turned into t5: v8i16 = sub t8, t2, and allows us to remove
t3 and t4 from the DAG.
Differential Revision: https://reviews.llvm.org/D127354
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions