llvm.org GIT mirror llvm / 3c9b41b
Fix typos git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210401 91177308-0d34-0410-b5e6-96231b3b80d8 Alp Toker 5 years ago
6 changed file(s) with 8 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
14131413 if (DISubprogram SPDecl = SP.getFunctionDeclaration()) {
14141414 DeclDie = getDIE(SPDecl);
14151415 assert(DeclDie && "This DIE should've already been constructed when the "
1416 "definition DIE was creaeted in "
1416 "definition DIE was created in "
14171417 "getOrCreateSubprogramDIE");
14181418 DeclLinkageName = SPDecl.getLinkageName();
14191419 }
159159 replaceFrameIndices(Fn);
160160
161161 // If register scavenging is needed, as we've enabled doing it as a
162 // post-pass, scavenge the virtual registers that frame index elimiation
162 // post-pass, scavenge the virtual registers that frame index elimination
163163 // inserted.
164164 if (TRI->requiresRegisterScavenging(Fn) && FrameIndexVirtualScavenging)
165165 scavengeFrameVirtualRegs(Fn);
145145 void NVPTXImageOptimizer::replaceWith(Instruction *From, ConstantInt *To) {
146146 // We implement "poor man's DCE" here to make sure any code that is no longer
147147 // live is actually unreachable and can be trivially eliminated by the
148 // unreachable block elimiation pass.
148 // unreachable block elimination pass.
149149 for (CallInst::use_iterator UI = From->use_begin(), UE = From->use_end();
150150 UI != UE; ++UI) {
151151 if (BranchInst *BI = dyn_cast(*UI)) {
22 ; clang -Oz -c test1.cpp -emit-llvm -S -o
33 ; Verify that we generate shld insruction when we are optimizing for size,
44 ; even for X86_64 processors that are known to have poor latency double
5 ; precision shift instuctions.
5 ; precision shift instructions.
66 ; uint64_t lshift10(uint64_t a, uint64_t b)
77 ; {
88 ; return (a << 10) | (b >> 54);
2424 ; clang -Os -c test2.cpp -emit-llvm -S
2525 ; Verify that we generate shld insruction when we are optimizing for size,
2626 ; even for X86_64 processors that are known to have poor latency double
27 ; precision shift instuctions.
27 ; precision shift instructions.
2828 ; uint64_t lshift11(uint64_t a, uint64_t b)
2929 ; {
3030 ; return (a << 11) | (b >> 53);
4545 ; clang -O2 -c test2.cpp -emit-llvm -S
4646 ; Verify that we do not generate shld insruction when we are not optimizing
4747 ; for size for X86_64 processors that are known to have poor latency double
48 ; precision shift instuctions.
48 ; precision shift instructions.
4949 ; uint64_t lshift12(uint64_t a, uint64_t b)
5050 ; {
5151 ; return (a << 12) | (b >> 52);
122122 ; CHECK: NULL
123123 ; CHECK-NOT: {{DW_TAG|NULL}}
124124 ; FIXME: We probably shouldn't bother describing the implicit
125 ; import of the preceeding anonymous namespace. This should be fixed
125 ; import of the preceding anonymous namespace. This should be fixed
126126 ; in clang.
127127 ; CHECK: DW_TAG_imported_module
128128 ; CHECK-NOT: {{DW_TAG|NULL}}
33 foo:
44
55 ;-----------------------------------------------------------------------------
6 ; Simple encodings (instuctions w/ no operands)
6 ; Simple encodings (instructions w/ no operands)
77 ;-----------------------------------------------------------------------------
88
99 nop