[GISel] Eliminate redundant bitmasking
authorJon Roelofs <jonathan_roelofs@apple.com>
Fri, 28 May 2021 18:41:20 +0000 (11:41 -0700)
committerJon Roelofs <jonathan_roelofs@apple.com>
Thu, 17 Jun 2021 19:53:00 +0000 (12:53 -0700)
commita2ab765029dd76756e98851847e6675795a973b6
tree7115b3584472fc6d8685bbb551be1df1c7e4c878
parent7b0612088289e4f57e089a792c5e6d1123a2b6e3
[GISel] Eliminate redundant bitmasking

This was a GISel vs SDAG regression that showed up at -Os on arm64 in:
SingleSource/Benchmarks/Adobe-C++/simple_types_constant_folding.test

https://llvm.godbolt.org/z/aecjodsjG

Differential revision: https://reviews.llvm.org/D103334
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/opt-overlapping-and.mir [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/cvt_f32_ubyte.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/shl-ext-reduce.ll