[llvm-bugs] [Bug 28567] [IPRA] Reg Usage Info Collector too aggressive.

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 15 00:38:52 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=28567

Vivek Pandya <vivekvpandya at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |vivekvpandya at gmail.com
         Resolution|INVALID                     |---

--- Comment #2 from Vivek Pandya <vivekvpandya at gmail.com> ---
I don't think current implement is correct because I have a very simple example
on X86 where only CL is clobbered than also CH is marked as clobbered :

target triple = "x86_64--"

define i8 @main(i8 %X) {
  %inc = add i8 %X, 1
  %inc2 = mul i8 %inc, 5
  ret i8 %inc2
}

for above llvm IR generated X86 code is as follow:

main:                                   # @main
    .cfi_startproc
# BB#0:
    movb    $5, %cl
    movl    %edi, %eax
    mulb    %cl
    addb    $5, %al
    retq

So here it is very clear that only CL, CX, RCX, ECX should be marked as
clobbered but current implementation marks CH too.

Here is review request https://reviews.llvm.org/D22400 that should fix this.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160715/ccddf187/attachment.html>


More information about the llvm-bugs mailing list