search for: emitcmp

Displaying 3 results from an estimated 3 matches for "emitcmp".

Did you mean: editcmd
2016 Jan 30
2
Redundant promotion of integer values in x86 target
Hello, While looking at some internal benchmarks, I found that llvm generates codes with redundant promotion, something like: xor %al, %cl movzbl %cl, %ecx cmp $0x20, %ecx I believe that the promotion stems from the logic in X86TargetLowering::EmitCmp. Comments in the code says, "Do the comparison at i32 if it's smaller, besides the Atom case. This avoids subregister aliasing issues. Keep the smaller reference if we're optimizing for size, however, as that'll allow better folding of memory operations." Can anybody please...
2016 Jan 31
1
Redundant promotion of integer values in x86 target
...> Hello, > > While looking at some internal benchmarks, I found that llvm generates > codes with redundant promotion, something like: > > xor %al, %cl > movzbl %cl, %ecx > cmp $0x20, %ecx > > I believe that the promotion stems from the logic in > X86TargetLowering::EmitCmp. Comments in the code says, > > "Do the comparison at i32 if it's smaller, besides the Atom case. This > avoids subregister aliasing issues. Keep the smaller reference if we're > optimizing for size, however, as that'll allow better folding of memory > operations.&qu...
2016 Feb 01
2
Redundant promotion of integer values in x86 target
...<mailto:llvm-dev at lists.llvm.org>> wrote: Hello, While looking at some internal benchmarks, I found that llvm generates codes with redundant promotion, something like: xor %al, %cl movzbl %cl, %ecx cmp $0x20, %ecx I believe that the promotion stems from the logic in X86TargetLowering::EmitCmp. Comments in the code says, "Do the comparison at i32 if it's smaller, besides the Atom case. This avoids subregister aliasing issues. Keep the smaller reference if we're optimizing for size, however, as that'll allow better folding of memory operations." Can anybody please...