[llvm-bugs] [Bug 27203] New: [ppc] hoist repeated constant for better code size and speed
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 4 13:43:20 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27203
Bug ID: 27203
Summary: [ppc] hoist repeated constant for better code size and
speed
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: PowerPC
Assignee: unassignedbugs at nondot.org
Reporter: spatel+llvm at rotateright.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
Filing a sentimental PPC sibling report for bug 27202:
define i1 @foo(i32 %i) {
%and = and i32 %i, 305419896
%cmp = icmp eq i32 %and, 305419896
ret i1 %cmp
}
$ ./llc maskcmp.ll -mtriple=powerpc64 -o -
...
lis 4, 4660
ori 4, 4, 22136
and 3, 3, 4
xoris 3, 3, 4660 <--- why bother?
cmplwi 3, 22136 <--- use cmplw instead
li 3, 1
bclr 12, 2, 0
# BB#1:
li 3, 0
blr
--
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/20160404/cb5c0ba3/attachment.html>
More information about the llvm-bugs
mailing list