[llvm] [CodeGen] Remove redundant checks (PR #99524)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 18 11:56:33 PDT 2024


topperc wrote:

This patch changes the generated code for this test for x86-64

```
define <4 x i32> @foo(<4 x i32> %x) {                                            
  %a = and <4 x i32> %x, <i32 255, i32 255, i32 255, i32 255>                    
  %b = udiv <4 x i32> %a, <i32 7, i32 7, i32 7, i32 7>                           
  ret <4 x i32> %b                                                               
} 
```

https://github.com/llvm/llvm-project/pull/99524


More information about the llvm-commits mailing list