FailedChanges

Summary

  1. actually also compile output in tests for -frewrite-includes (details)
  2. [mips] Expand 'lw/sw' instructions for 32-bit GOT (details)
  3. [OPENMP]Fix for PR43349: Crash for privatized loop bound. (details)
  4. [CodeGen][MIPS][NFC] Some standalone tests for D66805 "or vectors, (details)
  5. [MIPS] For vectors, select `add %x, C` as `sub %x, -C` if it results in (details)
  6. [SimplifyCFG] mergeConditionalStoreToAddress(): consider cost, not (details)
  7. [AArch64] Don't implicitly enable global isel on Darwin if (details)
  8. [InstCombine] foldUnsignedUnderflowCheck(): handle last few cases (details)
  9. [CodeGen][X86][NFC] Tests for (sub Carry, X) -> (addcarry (sub 0, X), 0, (details)
  10. [DAGCombine][ARM][X86] (sub Carry, X)  ->  (addcarry (sub 0, X), 0, (details)
  11. On PowerPC, Secure-PLT by default for FreeBSD 13 and higher (details)
  12. On PowerPC, Secure-PLT by default for FreeBSD 13 and higher (details)
  13. [SimplifyCFG] mergeConditionalStoreToAddress(): try to pacify MSAN (details)
  14. fix build, adjust test also for Windows path separator (details)
  15. llvm-reduce: Add pass to reduce basic blocks (details)
  16. gn build: Merge r372264 (details)
  17. [lld][WebAssembly] Fix use after free of archive path (details)
  18. Add AutoUpgrade function to add new address space datalayout string to (details)
  19. gn build: Merge r372267 (details)
  20. [analyzer] PR43102: Fix an assertion and an out-of-bounds error for (details)
  21. llvm-reduce: Fix inconsistencies between int/unsigned usage (standardize (details)
  22. llvm-reduce: Remove inaccurate doxy comment about a return that isn't (details)
  23. Remove the obsolete BlockByRefStruct flag from LLVM IR (details)
  24. [AArch64][GlobalISel] Support lowering musttail calls (details)
  25. [Docs] Moves topics to new categories (details)
  26. [WebAssembly] Restore defaults for stores per memop (details)
  27. [utils] Amend update_llc_test_checks.py to non-llc tooling, NFC (details)
  28. [utils] Add minimal support for MIR inputs to update_llc_test_checks.py (details)
  29. [Object] Extend MachOUniversalBinary::getObjectForArch (details)
  30. llvm-reduce: Avoid use-after-free when removing a branch instruction (details)
  31. Initialize all fields in ABIArgInfo. (details)
Commit 1e9c1d2b7bfcc27d3d47deac60ce20dc59aee75a by l.lunak
actually also compile output in tests for -frewrite-includes
Checking that the created output matches something is nice, but this
should also check whether the output makes sense.
Differential Revision: https://reviews.llvm.org/D63979
llvm-svn: 372250
The file was modifiedclang/test/Frontend/rewrite-includes.c
The file was modifiedclang/test/Frontend/Inputs/NextIncludes/rewrite-includes9.h
The file was modifiedclang/test/Frontend/Inputs/rewrite-includes1.h
The file was modifiedclang/test/Frontend/Inputs/rewrite-includes2.h
The file was modifiedclang/test/Frontend/Inputs/rewrite-includes3.h
The file was modifiedclang/test/Frontend/Inputs/rewrite-includes6.h
The file was modifiedclang/test/Frontend/Inputs/rewrite-includes4.h
The file was modifiedclang/test/Frontend/Inputs/rewrite-includes5.h
The file was modifiedclang/test/Frontend/rewrite-includes-cli-include.c
The file was modifiedclang/test/Frontend/Inputs/rewrite-includes7.h
The file was modifiedclang/test/Frontend/rewrite-includes-conditions.c
Commit 164dbd386d00fe62991d3ab4e7b25b599f3fb7dc by simon
[mips] Expand 'lw/sw' instructions for 32-bit GOT
In case of using 32-bit GOT access to the table requires two
instructions with attached %got_hi and %got_lo relocations. This patch
implements correct expansion of 'lw/sw' instructions in that case.
Differential Revision: https://reviews.llvm.org/D67705
llvm-svn: 372251
The file was modifiedllvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
The file was modifiedllvm/test/MC/Mips/mips64-expansions.s
The file was modifiedllvm/test/MC/Mips/mips-expansions.s
Commit f71939c0995191bea1adca754e9b7e17f9c1572a by a.bataev
[OPENMP]Fix for PR43349: Crash for privatized loop bound.
If the variable, used in the loop boundaries, is not captured in the
construct, this variable must be considered as undefined if it was
privatized.
llvm-svn: 372252
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
The file was modifiedclang/test/OpenMP/parallel_for_codegen.cpp
Commit 260b6949040985b8c315d080b8e197d0ddcc5dec by lebedev.ri
[CodeGen][MIPS][NFC] Some standalone tests for D66805 "or vectors,
select `add %x, C` as `sub %x, -C` if it results in inline immediate"
llvm-svn: 372253
The file was modifiedllvm/test/CodeGen/Mips/msa/arithmetic.ll
Commit ec6b91b6655a92d02c88e942d83366004575a234 by lebedev.ri
[MIPS] For vectors, select `add %x, C` as `sub %x, -C` if it results in
inline immediate
Summary: As discussed in https://reviews.llvm.org/D62341#1515637, for
MIPS `add %x, -1` isn't optimal. Unlike X86 there are no fastpaths to
matearialize such `-1`/`1` vector constants, and `sub %x, 1` results in
better codegen, so undo canonicalization
Reviewers: atanasyan, Petar.Avramovic, RKSimon
Reviewed By: atanasyan
Subscribers: sdardis, arichardson, hiraditya, jrtc27, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66805
llvm-svn: 372254
The file was modifiedllvm/lib/Target/Mips/MipsISelDAGToDAG.h
The file was modifiedllvm/lib/Target/Mips/MipsISelDAGToDAG.cpp
The file was modifiedllvm/test/CodeGen/Mips/msa/arithmetic.ll
Commit dd0170ab24577f76a5c8c78b4f7e068ac29de40c by lebedev.ri
[SimplifyCFG] mergeConditionalStoreToAddress(): consider cost, not
instruction count
Summary: As it can be see in the changed test, while `div` is really
costly, we were speculating it. This does not seem correct.
Also, the old code would run for every single insturuction in BB,
instead of eagerly bailing out as soon as there are too many
instructions.
This function still has a problem that `PHINodeFoldingThreshold` is
per-basic-block, while it should be for all the basic blocks.
Reviewers: efriedma, craig.topper, dmgreen, jmolloy
Reviewed By: jmolloy
Subscribers: xbolva00, hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67315
llvm-svn: 372255
The file was modifiedllvm/test/Transforms/SimplifyCFG/X86/merge-cond-stores-cost.ll
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
Commit 366ab0d086a457b085e3c9ba1c987d5499079cd6 by Lang Hames
[AArch64] Don't implicitly enable global isel on Darwin if
code-model==large.
Summary: AArch64 GlobalISel doesn't support MachO's large code model, so
this patch adds a check for that combination before implicitly enabling
it.
Reviewers: paquette
Subscribers: kristof.beyls, ributzka, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67724
llvm-svn: 372256
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetMachine.cpp
The file was addedllvm/test/CodeGen/AArch64/arm64-code-model-large-darwin.ll
Commit b646dd92c2385d31104057e8ff6f651b28c931b6 by lebedev.ri
[InstCombine] foldUnsignedUnderflowCheck(): handle last few cases
(PR43251)
Summary: I don't have a direct motivational case for this, but it would
be good to have this for completeness/symmetry.
This pattern is basically the motivational pattern from
https://bugs.llvm.org/show_bug.cgi?id=43251 but with different predicate
that requires that the offset is non-zero.
The completeness bit comes from the fact that a similar pattern (offset
!= zero) will be needed for https://bugs.llvm.org/show_bug.cgi?id=43259,
so it'd seem to be good to not overlook very similar patterns..
Proofs: https://rise4fun.com/Alive/21b
Also, there is something odd with `isKnownNonZero()`, if the non-zero
knowledge was specified as an assumption, it didn't pick it up (PR43267)
With this, i see no other missing folds for
https://bugs.llvm.org/show_bug.cgi?id=43251
Reviewers: spatel, nikic, xbolva00
Reviewed By: spatel
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67412
llvm-svn: 372257
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
The file was modifiedllvm/test/Transforms/InstCombine/result-of-usub-is-non-zero-and-no-overflow.ll
Commit a042aa1d829bbf37dc1feeca66d1c3fe77d53272 by lebedev.ri
[CodeGen][X86][NFC] Tests for (sub Carry, X) -> (addcarry (sub 0, X), 0,
Carry) fold (D62392)
llvm-svn: 372258
The file was modifiedllvm/test/CodeGen/X86/subcarry.ll
Commit c00f3182243d097382b71af199719c3027d96900 by lebedev.ri
[DAGCombine][ARM][X86] (sub Carry, X)  ->  (addcarry (sub 0, X), 0,
Carry)  fold
Summary:
`DAGCombiner::visitADDLikeCommutative()` already has a sibling fold:
`(add X, Carry) -> (addcarry X, 0, Carry)`
This fold, as suggested by @efriedma, helps recover from //some// of the
regressions of D62266
Reviewers: efriedma, deadalnix
Subscribers: javed.absar, kristof.beyls, llvm-commits, efriedma
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62392
llvm-svn: 372259
The file was modifiedllvm/test/CodeGen/ARM/addsubcarry-promotion.ll
The file was modifiedllvm/test/CodeGen/X86/subcarry.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Commit f88e75525d253a2af2e5ccfc860673aedbafc552 by dimitry
On PowerPC, Secure-PLT by default for FreeBSD 13 and higher
Summary: In https://svnweb.freebsd.org/changeset/base/349351, FreeBSD 13
and higher transitioned to Secure-PLT for PowerPC.  This part contains
the changes in llvm's PPC subtarget.
Reviewers: emaste, jhibbits, hfinkel
Reviewed By: jhibbits
Subscribers: wuzish, nemanjai, krytarowski, kbarton, MaskRay, jsji,
shchenz, steven.zhang, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67118
llvm-svn: 372260
The file was modifiedllvm/lib/Target/PowerPC/PPCSubtarget.cpp
Commit ab8b456ce5d85d3143b04475449733b2f5e02233 by dimitry
On PowerPC, Secure-PLT by default for FreeBSD 13 and higher
Summary: In https://svnweb.freebsd.org/changeset/base/349351, FreeBSD 13
and higher transitioned to Secure-PLT for PowerPC.  This part contains
the changes in clang's PPC architecture defaults.
Reviewers: emaste, jhibbits, hfinkel
Reviewed By: jhibbits
Subscribers: wuzish, nemanjai, krytarowski, kbarton, MaskRay, jsji,
shchenz, steven.zhang, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D67119
llvm-svn: 372261
The file was modifiedclang/lib/Driver/ToolChains/Arch/PPC.cpp
Commit feea722cf3dc9bcabec7350cfb3e8ac9ed19de10 by lebedev.ri
[SimplifyCFG] mergeConditionalStoreToAddress(): try to pacify MSAN
MSAN bot complains that there is use-of-uninitialized-value of this
FreeStores later in IsWorthwhile(). Perhaps FreeStores needs to be
stored in a vector?
llvm-svn: 372262
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
Commit 3425a896767621d2cb594edbca16424c3ee8b73d by l.lunak
fix build, adjust test also for Windows path separator
Introduced in 1e9c1d2b7bfc.
llvm-svn: 372263
The file was modifiedclang/test/Frontend/rewrite-includes-conditions.c
The file was modifiedclang/test/Frontend/rewrite-includes.c
Commit 070598bb529a9ac1b10e4c65a9644c90855255c4 by dblaikie
llvm-reduce: Add pass to reduce basic blocks
Patch by Diego Treviño!
Differential Revision: https://reviews.llvm.org/D66320
llvm-svn: 372264
The file was addedllvm/test/Reduce/remove-bbs.ll
The file was modifiedllvm/tools/llvm-reduce/DeltaManager.h
The file was modifiedllvm/tools/llvm-reduce/CMakeLists.txt
The file was addedllvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
The file was addedllvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.h
The file was addedllvm/test/Reduce/Inputs/remove-bbs.py
Commit 79718839d282506f1c2d5e439fc433e94c3abf3f by llvmgnsyncbot
gn build: Merge r372264
llvm-svn: 372265
The file was modifiedllvm/utils/gn/secondary/llvm/tools/llvm-reduce/BUILD.gn
Commit e40ef12bfad0108024d7d3979565096843bb29a7 by sbc
[lld][WebAssembly] Fix use after free of archive path
This was fixed in the ELF backend in https://reviews.llvm.org/D34554.
Differential Revision: https://reviews.llvm.org/D67676
llvm-svn: 372266
The file was modifiedlld/wasm/InputFiles.h
Commit 68eae4985995f06a8bbfadb9cf420a66cbfbe04a by akhuang
Add AutoUpgrade function to add new address space datalayout string to
existing datalayouts.
Summary: Add function to AutoUpgrade to change the datalayout of old X86
datalayout strings. This adds "-p270:32:32-p271:32:32-p272:64:64" to X86
datalayouts that are otherwise valid and don't already contain it.
This also removes the compatibility changes in
https://reviews.llvm.org/D66843. Datalayout change in
https://reviews.llvm.org/D64931.
Reviewers: rnk, echristo
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67631
llvm-svn: 372267
The file was modifiedllvm/lib/Target/X86/X86TargetMachine.h
The file was addedllvm/unittests/Bitcode/DataLayoutUpgradeTest.cpp
The file was modifiedllvm/include/llvm/IR/AutoUpgrade.h
The file was addedllvm/test/Bitcode/upgrade-datalayout.ll
The file was modifiedllvm/lib/Target/X86/X86TargetMachine.cpp
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp
The file was modifiedllvm/include/llvm/Target/TargetMachine.h
The file was addedllvm/test/Bitcode/upgrade-datalayout3.ll
The file was modifiedllvm/unittests/Bitcode/CMakeLists.txt
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
The file was addedllvm/test/Bitcode/upgrade-datalayout2.ll
Commit bdad30a8b8fa48a62a37e7400b3ae5a99a6aca53 by llvmgnsyncbot
gn build: Merge r372267
llvm-svn: 372268
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/Bitcode/BUILD.gn
Commit b8ac93c73b618dd9bec20dc2d94ec9afb0140780 by kristof.umann
[analyzer] PR43102: Fix an assertion and an out-of-bounds error for
diagnostic location construction
Summary: https://bugs.llvm.org/show_bug.cgi?id=43102
In today's edition of "Is this any better now that it isn't crashing?",
I'd like to show you a very interesting test case with loop widening.
Looking at the included test case, it's immediately obvious that this is
not only a false positive, but also a very bad bug report in general. We
can see how the analyzer mistakenly invalidated `b`, instead of its
pointee, resulting in it reporting a null pointer dereference error. Not
only that, the point at which this change of value is noted at is at the
loop, rather then at the method call.
It turns out that `FindLastStoreVisitor` works correctly, rather the
supplied explodedgraph is faulty, because `BlockEdge` really is the
`ProgramPoint` where this happens.
{F9855739} So it's fair to say that this needs improving on multiple
fronts. In any case, at least the crash is gone.
Full ExplodedGraph: {F9855743}
Reviewers: NoQ, xazax.hun, baloghadamsoftware, Charusso, dcoughlin,
rnkovacs, TWeaver
Subscribers: JesperAntonsson, uabelho, Ka-Ka, bjope, whisperity, szepet,
a.sidorin, mikhail.ramalho, donat.nagy, dkrupp, gamesh411, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D66716
llvm-svn: 372269
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/lib/Analysis/PathDiagnostic.cpp
The file was addedclang/test/Analysis/loop-widening.cpp
Commit c4da7eeccde607dc7a0d9efe0ddf299aee54ef01 by dblaikie
llvm-reduce: Fix inconsistencies between int/unsigned usage (standardize
on int)
llvm-svn: 372270
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceMetadata.cpp
The file was modifiedllvm/tools/llvm-reduce/deltas/Delta.h
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceArguments.cpp
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceFunctions.cpp
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceGlobalVars.cpp
The file was modifiedllvm/tools/llvm-reduce/deltas/Delta.cpp
Commit 69a92352022338417f27bfa45c0471beb6a92cc7 by dblaikie
llvm-reduce: Remove inaccurate doxy comment about a return that isn't
returned
Addressing post-commit code review feedback from Dávid Bolvanský -
thanks!
llvm-svn: 372271
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
Commit 0779dffbd4a927d7bf9523482481248c51796907 by Adrian Prantl
Remove the obsolete BlockByRefStruct flag from LLVM IR
DIFlagBlockByRefStruct is an unused DIFlag that originally was used by
clang to express (Objective-)C block captures in debug info. For the
last year Clang has been emitting complex DIExpressions to describe
block captures instead, which makes all the code supporting this flag
redundant.
This patch removes the flag and all supporting "dead" code, so we can
reuse the bit for something else in the future.
Since this only affects debug info generated by Clang with the block
extension this mostly affects Apple platforms and I don't have any
bitcode compatibility concerns for removing this. The Verifier will
reject debug info that uses the bit and thus degrade gracefully when
LTO'ing older bitcode with a newer compiler.
rdar://problem/44304813
Differential Revision: https://reviews.llvm.org/D67453
llvm-svn: 372272
The file was modifiedllvm/bindings/go/llvm/dibuilder.go
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
The file was modifiedllvm/test/CodeGen/ARM/debug-info-blocks.ll
The file was modifiedllvm/test/DebugInfo/Generic/block-asan.ll
The file was modifiedllvm/include/llvm/IR/DebugInfoMetadata.h
The file was modifiedllvm/test/Verifier/blockbyref.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
The file was modifiedllvm/include/llvm-c/DebugInfo.h
The file was modifiedllvm/include/llvm/IR/DebugInfoFlags.def
The file was modifiedllvm/lib/IR/Verifier.cpp
Commit ce65ebc39e5bac42308038aab90507611d319d26 by Jessica Paquette
[AArch64][GlobalISel] Support lowering musttail calls
Since we now lower most tail calls, it makes sense to support musttail.
Instead of always falling back to SelectionDAG, only fall back when a
musttail call was not able to be emitted as a tail call. Once we can
handle most incoming and outgoing arguments, we can change this to a
`report_fatal_error` like in ISelLowering.
Remove the assert that we don't have varargs and a musttail, and replace
it with a return false. Implementing this requires that we implement
`saveVarArgRegisters` from AArch64ISelLowering, which is an entirely
different patch.
Add GlobalISel lines to vararg-tallcall.ll to make sure that we produce
correct code. Right now we only fall back, but eventually this will be
relevant.
Differential Revision: https://reviews.llvm.org/D67681
llvm-svn: 372273
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/call-translator-musttail.ll
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/call-translator-tail-call.ll
The file was modifiedllvm/test/CodeGen/AArch64/vararg-tallcall.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64CallLowering.cpp
Commit 8535ba6fa01e355521398c164e5b3d665be2125b by d4m1887
[Docs] Moves topics to new categories
This commit moves several topics to new categories. It also removes a
few duplicate links in Subsystem Documentation.
llvm-svn: 372274
The file was modifiedllvm/docs/ProgrammingDocumentation.rst
The file was modifiedllvm/docs/SubsystemDocumentation.rst
The file was modifiedllvm/docs/UserGuides.rst
The file was modifiedllvm/docs/index.rst
Commit dbcd7f560270890ee0857b86721bf561103192d8 by tlively
[WebAssembly] Restore defaults for stores per memop
Summary: Large slowdowns were observed in Rust due to many small,
constant sized copies in conjunction with poorly-optimized memory.copy
implementations. Since memory.copy cannot be expected to be inlined
efficiently by engines at this time, stop using it for the smallest
copies. We continue to lower all memcpy intrinsics to memory.copy,
though.
Reviewers: aheejin, alexcrichton
Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, JDevlieghere,
sunfish, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D67639
llvm-svn: 372275
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/bulk-memory.ll
Commit 73778e9878fab279b4f8654d3eecff2571c6398b by rtereshin
[utils] Amend update_llc_test_checks.py to non-llc tooling, NFC
Very minor change aiming to make it easier to extend the script
downstream to support non-llc, but llc-like tools. The main objective is
to decrease the probability of merge conflicts.
llvm-svn: 372276
The file was modifiedllvm/utils/update_llc_test_checks.py
Commit 84c368e2e22f240565f76fbd396af7544b30b60d by rtereshin
[utils] Add minimal support for MIR inputs to update_llc_test_checks.py
update_{llc,mir}_test_checks.py applicability is determined by the
output (assembly or MIR), not the input, which makes
update_llc_test_checks.py the right tool to generate tests that start at
MIR and stop at the final assembly.
This commit adds the minimal support for this path. Main limitation that
remains:
- MIR has to have LLVM IR section, and the CHECK lines will be inserted
into the LLVM IR functions that correspond to the MIR functions.
Running
../utils/update_llc_test_checks.py --llc-binary ./bin/llc on a slightly
modified  ../test/CodeGen/X86/bad-tls-fold.mir
produces the following diff:
+# NOTE: Assertions have been autogenerated by
utils/update_llc_test_checks.py
+# RUN: llc %s -o - | FileCheck %s
--- |
  target triple = "x86_64-unknown-linux-gnu"
@@ -6,17 +7,31 @@
  @i = external thread_local global i32
   define i32 @or() {
+  ; CHECK-LABEL: or:
+  ; CHECK:       # %bb.0: # %entry
+  ; CHECK-NEXT:    movq {{.*}}(%rip), %rax
+  ; CHECK-NEXT:    orq $7, %rax
+  ; CHECK-NEXT:    movq i@{{.*}}(%rip), %rcx
+  ; CHECK-NEXT:    orq %rax, %rcx
+  ; CHECK-NEXT:    movl %fs:(%rcx), %eax
+  ; CHECK-NEXT:    retq
  entry:
    ret i32 undef
  }
-
  define i32 @and() {
+  ; CHECK-LABEL: and:
+  ; CHECK:       # %bb.0: # %entry
+  ; CHECK-NEXT:    movq {{.*}}(%rip), %rax
+  ; CHECK-NEXT:    orq $7, %rax
+  ; CHECK-NEXT:    movq i@{{.*}}(%rip), %rcx
+  ; CHECK-NEXT:    andq %rax, %rcx
+  ; CHECK-NEXT:    movl %fs:(%rcx), %eax
+  ; CHECK-NEXT:    retq
  entry:
    ret i32 undef
  }
...
(not applied)
llvm-svn: 372277
The file was modifiedllvm/utils/update_llc_test_checks.py
Commit 4fd11c1e456ef36ce7c49c51c9daef6d0ffd8cbc by shal1t712
[Object] Extend MachOUniversalBinary::getObjectForArch
Make the method MachOUniversalBinary::getObjectForArch return
MachOUniversalBinary::ObjectForArch and add helper methods
MachOUniversalBinary::getMachOObjectForArch,
MachOUniversalBinary::getArchiveForArch for those who explicitly expect
to get a MachOObjectFile or an Archive.
Differential revision: https://reviews.llvm.org/D67700
Test plan: make check-all
llvm-svn: 372278
The file was modifiedllvm/lib/DebugInfo/Symbolize/Symbolize.cpp
The file was modifiedllvm/include/llvm/Object/MachOUniversal.h
The file was modifiedllvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
The file was modifiedllvm/lib/Object/MachOUniversal.cpp
The file was modifiedllvm/tools/llvm-objdump/MachODump.cpp
The file was modifiedllvm/tools/llvm-lipo/llvm-lipo.cpp
The file was modifiedllvm/lib/Object/Object.cpp
Commit fa7f168a371200456b1dd237302597260c22f99e by dblaikie
llvm-reduce: Avoid use-after-free when removing a branch instruction
Found my msan buildbot & pointed out by Nico Weber - thanks Nico!
llvm-svn: 372280
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceBasicBlocks.cpp
Commit e93aded7f02d661234ad81aac0785ccdef6a79dd by sguelton
Initialize all fields in ABIArgInfo.
Due to usage of an uninitialized fields, we end up with a Conditional
jump or move depends on uninitialised value
Fixes https://bugs.llvm.org/show_bug.cgi?id=40547
Commited on behalf of Martin Liska <mliska@suse.cz>
llvm-svn: 372281
The file was modifiedclang/include/clang/CodeGen/CGFunctionInfo.h