llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.

Results 700 llvm-project issues
Sort by recently updated
recently updated
newest added

Consider: ``` int a(unsigned x) { return __builtin_popcount(x); } ``` With -march=rv32i, this generates a call to __mulsi3. This is likely to be slow; if we don't have "m", we...

backend:RISC-V

https://alive2.llvm.org/ce/z/UmK7vQ https://godbolt.org/z/a6Gqfvxv8 ```llvm define i1 @src(float %0) { %t1 = fmul float %0, 0x3FF0CCCCC0000000 %t2 = fcmp olt float %t1, 0x3FE20418A0000000 ret i1 %t2 } define i1 @tgt(float %0) {...

llvm:instcombine
missed-optimization
floating-point

excuse me, i am new to llvm, but i have some difficulties. how can i convert llvm ir file to riscv64 assembly code? im in x86 platform, using ubuntu 22.04,...

question
backend:RISC-V

Crash itself is reproducible on Godbolt: https://godbolt.org/z/vsWhM5Wse Reproducer (reduced and modified from https://github.com/gcc-mirror/gcc/blob/master/gcc/testsuite/gfortran.dg/gomp/ref_inquiry.f90) ```console $ cat test.f90 implicit none type t integer :: i end type t type(t) :: x...

flang:ir
crash
flang:openmp

Specifying checks using the literal style (|) in the clang-tidy config file is currently supported but was not implemented for the --verify-config options. This means that clang-tidy would work properly...

clang-tools-extra
clang-tidy

There have been a few missed-optimization issues with `pow(x, n)` where `n` is an integer. Here, I will provide some other patterns which aren't mentioned in the existing issues. Test...

backend:AArch64
backend:X86
missed-optimization

https://alive2.llvm.org/ce/z/ivPZ26 for the abs transformations.

vectorization
llvm:transforms

I have this Zig code: ```zig export fn count_zero_groups(x: u64) u64 { return @popCount(~x & ~(~x

backend:RISC-V
backend:X86
missed-optimization

Consider: ``` int a(unsigned long long x) { return __builtin_popcountll(x); } ``` Targeting rv64, this generates: ``` a: srli a1, a0, 1 lui a2, 349525 addiw a2, a2, 1365 slli...

backend:RISC-V
missed-optimization