BreadTom
BreadTom
Example code in GCC that could be optimize: [gcc/config/aarch64/aarch64.cc#L19381](https://github.com/gcc-mirror/gcc/blob/57d30924e2b3887a1aedc6102daa67bc3272ace7/gcc/config/aarch64/aarch64.cc#L19381) ``` static char * aarch64_offload_options (void) { if (TARGET_ILP32) return xstrdup ("-foffload-abi=ilp32 -foffload-abi-host-opts=-mabi=ilp32"); else return xstrdup ("-foffload-abi=lp64 -foffload-abi-host-opts=-mabi=lp64"); } ```
[GCC bug](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126173)
[GCC trunk bug](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124938)
[Reduced Godbolt link](https://godbolt.org/z/rvaxPdE6T) [GCC bug](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125442) C code: ```c #include _Bool src (unsigned long x, unsigned long y) { unsigned long _9 = x | y; _Bool maxnull = (_9 ==...
> the case I find: https://alive2.llvm.org/ce/z/eVF5DP > > general version: https://alive2.llvm.org/ce/z/jv3rGf Is there real code that has this pattern?
Started with Clang 11
[GCC bug](https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126021)
> Helloo! I'm looking to make my first contribution to LLVM and would like to take this on See Commit 1bbd613e6267ea0a08994b56adc73cc7b2b5d07d and [Contributing](https://llvm.org/docs/Contributing.html). Try InstCombinerImpl::visitShl () in llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
Side Note: Do not do this transformation when your operating on signed two bit integer since 1
@muhammadshayanasim1-web I edited the issue to be inverse since it is far easier.