[LLVMdev] [LLVMDev] Is there any way to eliminate zero-extension instruction?

minwook Ahn minwook.ahn at gmail.com
Tue Jan 19 23:55:30 PST 2010


Dear developers.

We try to make our own backend of llvm for our target machine.

Assume that we have the following code in our source code.

int i = ( a < b );

The code is translated into

r0 <- gt r1 r2
r3 <- and r0 0x1

We think that r3 is not necessary. Is there any way to eliminate it by just
modifying

our backend?

Thank you in advance.

Minwook Ahn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100120/13ad88bb/attachment.html>


More information about the llvm-dev mailing list