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

            Bug ID: 23909
           Summary: Inefficient encoding with llc -filetype=obj
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

----------------------------------------------
target triple = "x86_64-pc-windows-msvc18.0.0"
define void @f(i32 %x) personality i8* bitcast (i32 (...)* @__CxxFrameHandler3
to i8*) {
  invoke void @h()
          to label %invoke.cont unwind label %lpad
invoke.cont:
  ret void
lpad:
 landingpad { i8*, i32 }
          cleanup
  call void @g(i32 %x)
  ret void
}
declare void @h()
declare i32 @__CxxFrameHandler3(...)
declare void @g(i32 %x)
-------------------------------------------


Going directly to a .o produces

f.cleanup:
....
      29:    8b 8a 34 00 00 00                                movl    52(%rdx),
%ec

Going via assembly produces

f.cleanup:
....
      29:    8b 4a 34                                         movl    52(%rdx),
%ecx

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to