Displaying 7 results from an estimated 7 matches for "garbas".
Did you mean:
gardas
2019 Aug 13
2
Loop optimization
Thanks a lot for your help.
Indeed if I compile with -OZ the loop gets replaced with something like this:
if ( *v3 < 0 )
v4 = 0;
Is there a reason why it does not get applied with O3 ?
I mean this a huge improvement to the loop.
-----Original Message-----
From: Doerfert, Johannes [mailto:jdoerfert at anl.gov]
Sent: Dienstag, 13. August 2019 19:13
To: llvm-dev at lists.llvm.org; Garba
2017 Apr 22
2
LLVM Optimizations strange behavior/bug
Hi,
during a reverse engineering challenge I used clang/llvm optimizations to minimiz some code and I found some strange behavior that I can't reproduce with GCC or CL (visual studio compiler).
The C code function contains some code that operates on a data array and an supplied password from ARGV. The compiled binary works as long as I don't activate any optimizations. When I activate
2019 Aug 13
2
Loop optimization
Hi,
I was wondering if there is an optimization pass in LLVM or Polly that can optimize this given loop:
int main(int argc, char* argv[]) {
char s = 0;
// Loop is setting s = argv[1][0];
for (int i=0; i<argv[1][0]; i++) {
s++;
}
printf("s = %c\n", s);
return 0;
}
2013 Feb 01
0
[LLVMdev] Structure declaration with IR builder
Hi,
I test your code and it works!!!
but I didn't understand if "create a function" it necessary for my aims.
What I tried to do is declare a structured to allow after declaration
global or local structured variables.
How I can I do?
Thanks,
Manuele
Il 31/01/2013 10:14, Garba,Peter ha scritto:
> Hi,
>
> that's what I'm doing ...
>
> //Init the struct type
2015 Dec 17
2
llvm-3.6 MCAsmParser x64 Error "invalid operand for instruction" when msb set
Hello,
I am experiencing problems, when trying to assemble these two x86-64 Opcodes
"add r64, imm32"
"imul r64, r64, imm32"
When having the most significant bit set for imm32, for example:
"add rax, 0x80000000", "add rax, 0xffffffff", ...
"imul rbx, rsi, 0x80000000", "imul rbx, rsi, 0xffffffff", ...
The Error Message I receive is the
2013 Jan 31
2
[LLVMdev] Structure declaration with IR builder
Hi All,
I tryed to create a global structured derived declaration in my compiler by:
StructType *st = StructType(getGlobalContext(), elements, false);
In dump module i didn't find any code needed to declare a new user data
type.
Is there a instruction to add this class into current module?
Cheers,
Manuele
2019 Apr 27
2
Optimization Problem
Hi,
I try to understand why llvm can't optimize this small piece of code.
My expectation is that the IR will be optimized to a " ret i64 2101545.
But somehow the alias analysis fails when the pointer is casted to an integer value,
so the dead code eliminator can't optimize it away.
Could someone explain to me why this is failing and if there is a solution for that ?
I can trick the