[GlobalISel] Combine zext(trunc x) to x
Combine zext(trunc x) to x when truncated bits are known to be zero. Differential Revision: https://reviews.llvm.org/D96031
Showing
- llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h 3 additions, 0 deletionsllvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
- llvm/include/llvm/Target/GlobalISel/Combine.td 12 additions, 1 deletionllvm/include/llvm/Target/GlobalISel/Combine.td
- llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp 14 additions, 0 deletionsllvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
- llvm/test/CodeGen/AMDGPU/GlobalISel/combine-zext-trunc.mir 198 additions, 0 deletionsllvm/test/CodeGen/AMDGPU/GlobalISel/combine-zext-trunc.mir
- llvm/test/CodeGen/AMDGPU/GlobalISel/shl-ext-reduce.ll 3 additions, 10 deletionsllvm/test/CodeGen/AMDGPU/GlobalISel/shl-ext-reduce.ll
Loading
Please register or sign in to comment