[llvm-bugs] [Bug 30660] New: [ARM] inefficient negation of bool
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Oct 11 13:34:26 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=30660
Bug ID: 30660
Summary: [ARM] inefficient negation of bool
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: ARM
Assignee: unassignedbugs at nondot.org
Reporter: spatel+llvm at rotateright.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
$ cat negate-i1.ll
define i32 @select_neg1_or_0(i1 %a) {
%b = sext i1 %a to i32
ret i32 %b
}
$ ./llc -o - negate-i1.ll -mtriple=arm
lsl r0, r0, #31
asr r0, r0, #31
mov pc, lr
Should this be neg/rsb?
--
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/20161011/4ecc7bf9/attachment.html>
More information about the llvm-bugs
mailing list