llvm.org GIT mirror llvm / e45f2df
Add another note taken from the gcc bugzilla. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123315 91177308-0d34-0410-b5e6-96231b3b80d8 Nick Lewycky 9 years ago
1 changed file(s) with 20 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6767
6868 //===---------------------------------------------------------------------===//
6969
70 We compiles the following:
70 We compile the following:
7171
7272 define i16 @func_entry_2E_ce(i32 %i) {
7373 switch i32 %i, label %bb12.exitStub [
245245 Rather than having tBR_JTr print a ".align 2" and constant island pass pad it,
246246 add a target specific ALIGN instruction instead. That way, GetInstSizeInBytes
247247 won't have to over-estimate. It can also be used for loop alignment pass.
248
249 //===---------------------------------------------------------------------===//
250
251 We generate conditional code for icmp when we don't need to. This code:
252
253 int foo(int s) {
254 return s == 1;
255 }
256
257 produces:
258
259 foo:
260 cmp r0, #1
261 mov.w r0, #0
262 it eq
263 moveq r0, #1
264 bx lr
265
266 when it could use subs + adcs. This is GCC PR46975.