search for: garba

Displaying 7 results from an estimated 7 matches for "garba".

Did you mean: garbl
2019 Aug 13
2
Loop optimization
...g 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 Peter <peter.garba at gemalto.com> Subject: Re: Loop optimization Without testing it I'd say loop idiom recognition (Transforms/Scalar/LoopIdiomRecognize.h) is the one that should kick in and optimize this. ________________________________________ From: llvm-dev <llvm-dev-bounces at...
2017 Apr 22
2
LLVM Optimizations strange behavior/bug
...5A8 mov rax, 0F61EA263E1103088h .text:00000000004005B2 mov cs:Plaintext, rax .text:00000000004005B9 retn .text:00000000004005B9 DecryptBlock(unsigned char *) endp Any idea if this is a bug or why clang does show this behavior ? Thanks, Peter Garba I've attached the sample code to the mail. Please ignore the comments and the style of the code ;) ________________________________ This message and any attachments are intended solely for the addressees and may contain confidential information. Any unauthorized use or disclosure, either whole...
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 > llvm::StructType *structReg = llvm::StructType::create(TargetModule->getContext(),vMember, "struct.Foo"); > structRegPtr = llvm::PointerType::get(structReg, 0); > &g...
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