Commit Graph

184737 Commits

Author SHA1 Message Date
Roman Lebedev 9348d24706 [SimplifyCFG][NFC] Make merge-cond-stores-cost.ll X86-specific, and rewrite it
We clearly perform store-merging, even though div is really costly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371300 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 10:55:04 +00:00
Benjamin Kramer 7576bfc539 [Attributor] Make unimplemented method pure virtual.
Otherwise the compiler mistakes it for a vtable anchor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371298 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 10:27:13 +00:00
Roman Lebedev 781f9079d1 [SimplifyCFG][NFC] Show that we don't consider the cost when merging cond stores
We count instruction count in each BB's separately, not their cost.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371297 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 09:25:26 +00:00
Roman Lebedev 4551e472ea [SimplifyCFG][NFC] Regenerate merge-cond-stores* tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371296 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 09:25:18 +00:00
Roman Lebedev a4ac27521e [SimplifyCFG] SpeculativelyExecuteBB(): It's SpeculatedInstructions, not SpeculationCost
It counts the number of instructions we are ok speculating
(at most 1 there), not their cost, so rename accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371294 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 09:06:06 +00:00
Sylvestre Ledru 5d6a5b9543 Replicate the change "[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment"
on AVR to avoid a breakage.
See r371200 / https://reviews.llvm.org/D67229



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371293 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 08:38:46 +00:00
Hideto Ueno 4525109839 [Attributor] ValueSimplify Abstract Attribute
Summary:
This patch introduces initial `AAValueSimplify` which simplifies a value in a context.

example
- (for function returned) If all the return values are the same and constant, then we can replace callsite returned with the constant.
- If an internal function takes the same value(constant) as an argument in the callsite, then we can replace the argument with that constant.

Reviewers: jdoerfert, sstefan1

Reviewed By: jdoerfert

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66967

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371291 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 07:03:05 +00:00
David Zarzycki 03e62e9930 [git-llvm] Do not reinvent @{upstream}
Make `git-llvm` more robust when used with a nontrivial repository.

https://reviews.llvm.org/D67262

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371290 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 06:44:52 +00:00
Xing GUO 89c6befa0a Revert [CodeGen] Fix typos to run tests. NFC.
This reverts r371286 (git commit b38105bbd0f7dfef424a4f096aa6a6b7b467fe99)

r371286 caused build bots' failure. I'll check it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371289 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 05:14:47 +00:00
Xing GUO a1113073f1 [CodeGen] Fix typos to run tests. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371286 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 04:57:53 +00:00
Teresa Johnson ef512ca8e6 Change TargetLibraryInfo analysis passes to always require Function
Summary:
This is the first change to enable the TLI to be built per-function so
that -fno-builtin* handling can be migrated to use function attributes.
See discussion on D61634 for background. This is an enabler for fixing
handling of these options for LTO, for example.

This change should not affect behavior, as the provided function is not
yet used to build a specifically per-function TLI, but rather enables
that migration.

Most of the changes were very mechanical, e.g. passing a Function to the
legacy analysis pass's getTLI interface, or in Module level cases,
adding a callback. This is similar to the way the per-function TTI
analysis works.

There was one place where we were looking for builtins but not in the
context of a specific function. See FindCXAAtExit in
lib/Transforms/IPO/GlobalOpt.cpp. I'm somewhat concerned my workaround
could provide the wrong behavior in some corner cases. Suggestions
welcome.

Reviewers: chandlerc, hfinkel

Subscribers: arsenm, dschuff, jvesely, nhaehnle, mehdi_amini, javed.absar, sbc100, jgravelle-google, eraman, aheejin, steven_wu, george.burgess.iv, dexonsmith, jfb, asbirlea, gchatelet, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66428

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371284 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 03:09:36 +00:00
Craig Topper 58425baecf [X86] Add tests for fp128 frem, sqrt, sin, and cos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371283 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 01:39:21 +00:00
Craig Topper 08e98de550 [X86] Autogenerate fp128-libcalls.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371282 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 01:39:12 +00:00
Fangrui Song 2ce639442f [llvm-objcopy] Rename SHOffset (e_shoff) field to SHOff. NFC
Similar to D67254.

`struct Elf*_Shdr` has a field `sh_offset`. Rename SHOffset to SHOff to
avoid confusion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371281 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 01:38:56 +00:00
Richard Smith 5764a8f942 Synchronize LLVM's copy of libc++abi's demangler with the libc++abi
version after r371273.

Also fix a minor issue in r371273 that only surfaced after template
instantiation from LLVM's use of the demangler.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371274 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-07 00:11:53 +00:00
Amara Emerson f092f4409a [AArch64][GlobalISel] Enable the localizer for optimized builds.
Despite the fact that the localizer's original motivation was to fix horrendous
constant spilling at -O0, shortening live ranges still has net benefits even
with optimizations enabled.

On an -Os build of CTMark, doing this improves code size by 0.5% geomean.

There are a few regressions, bullet increasing in size by 0.5%. One example from
bullet where code size increased slightly was due to GlobalISel actually now
generating the same code as SelectionDAG. So we actually have an opportunity
in future to implement better heuristics for localization and therefore be
*better* than SDAG in some cases. In relation to other optimizations though that
one is relatively minor.

Differential Revision: https://reviews.llvm.org/D67303

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371266 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 22:27:09 +00:00
Evandro Menezes af17674bf4 [InstCombine] Refactor substitution of instruction in the parent BB (NFC)
Add the new method `LibCallSimplifier::substituteInParent()` that calls
`LibCallSimplifier::replaceAllUsesWith()' and
`LibCallSimplifier::eraseFromParent()` back to back, simplifying the
resulting code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371264 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 22:07:11 +00:00
Lang Hames 761cdf8f50 [ORC][RPC] Join server thread before checking condition in unit test.
Otherwise we have a race on the sent-messages count.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371263 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 21:55:43 +00:00
Nick Desaulniers aaff490524 [IR] CallBrInst: scan+update arg list when indirect dest list changes
Summary:
There's an unspoken invariant of callbr that the list of BlockAddress
Constants in the "function args" list match the BasicBlocks in the
"other labels" list. (This invariant is being added to the LangRef in
https://reviews.llvm.org/D67196).

When modifying the any of the indirect destinations of a callbr
instruction (possible jump targets), we need to update the function
arguments if the argument is a BlockAddress whose BasicBlock refers to
the indirect destination BasicBlock being replaced.  Otherwise, many
transforms that modify successors will end up violating that invariant.
A recent change to the arm64 Linux kernel exposed this bug, which
prevents the kernel from booting.

I considered maintaining a mapping from indirect destination BasicBlock
to argument operand BlockAddress, but this ends up being a one to
potentially many (though usually one) mapping.  Also, the list of
arguments to a function (or more typically inline assembly) ends up
being less than 10.  The implementation is significantly simpler to just
rescan the full list of arguments. Because of the one to potentially
many relationship, the full arg list must be scanned (we can't stop at
the first instance).

Thanks to the following folks that reported the issue and helped debug
it:
* Nathan Chancellor
* Will Deacon
* Andrew Murray
* Craig Topper

Link: https://bugs.llvm.org/show_bug.cgi?id=43222
Link: https://github.com/ClangBuiltLinux/linux/issues/649
Link: https://lists.infradead.org/pipermail/linux-arm-kernel/2019-September/678330.html

Reviewers: craig.topper, chandlerc

Reviewed By: craig.topper

Subscribers: void, javed.absar, kristof.beyls, hiraditya, llvm-commits, nathanchance, srhines

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67252

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371262 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 21:50:11 +00:00
Craig Topper 7773eb0905 [X86] Add a AVX512VBMI command line to min-legal-vector-width.ll. Always enable fast-variable-shuffle
Trying to minimize the features we need to manipulate when this
is updated for D67259.

The VBMI is interesting because it enables some improved combining
for truncates.

I enabled fast-variable-shuffle because all the CPUs we're going
to add implicitly enable it. So they can share check lines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371261 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 21:49:01 +00:00
Craig Topper 5a75b69d70 [X86] Replace -mcpu with -mattr on some tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371260 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 21:48:44 +00:00
Lang Hames 1d942708d8 [ORC] Add a missing #include atomic.
Hopefully this will fix the bot build failures from r371245.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371255 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 20:50:00 +00:00
Matt Arsenault 60dc45e8cb GlobalISel: Add G_FMAD instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371254 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 20:49:10 +00:00
Matt Arsenault 17f24f565d GlobalISel: Support physical register inputs in patterns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371253 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 20:32:37 +00:00
Reid Kleckner c71dc649f6 Remove dead .seh_stackalloc parsing method in X86AsmParser
The shared COFF asm parser code handles this directive, since it is
shared with AArch64. Spotted by Alexandre Ganea in review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371251 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 20:12:44 +00:00
Matt Arsenault 39b334b81d AMDGPU: Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371249 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 20:00:22 +00:00
Puyan Lotfi 2687a636d1 [llvm-ifs] Improving detection of PlatformKind from triple for TBD generation.
It was pointed out that I had hard-coded PlatformKind. This is rectifying that.

Differential Revision: https://reviews.llvm.org/D67255




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371248 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:59:59 +00:00
Sean Fertile f7e5ff3352 [PowerPC][XCOFF] Remove basic test. [NFC]
Test verified that we could compile an empty module and produce an XCOFF
object file. Newer tests superssed this coverage, its safe to remove.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371247 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:55:44 +00:00
Evandro Menezes 8d2dc0ac2f [ConstantFolding] Add new test cases for transcendentals (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371246 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:41:49 +00:00
Lang Hames af46d1e1e6 [ORC] Make sure RPC channel-send is called in blocking calls and responses.
ORC-RPC batches calls by default, and the channel's send method must be called
to transfer any buffered calls to the remote. The call to send was missing on
responses and blocking calls in the SingleThreadedRPCEndpoint. This patch adds
the necessary calls and modifies the RPC unit test to check for them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371245 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:21:59 +00:00
Lang Hames afaf30acaa [llvm-jitlink] Add optional slab allocator for testing locality optimizations.
The llvm-jitlink utility now accepts a '-slab-allocate <size>' option. If given,
llvm-jitlink will use a slab-based memory manager rather than the default
InProcessMemoryManager. Using a slab allocator will allow reliable testing of
future locality based optimizations (e.g. PLT and GOT elimination) in JITLink.

The <size> argument is a number, optionally followed by a units specifier (Kb,
Mb, or Gb). If the units are not given then the number is assumed to be in Kb.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371244 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:21:55 +00:00
Craig Topper 50eeea1f07 [X86] Use MOVSX by default instead of CBW to extend i8 to AX for i8 sdivrem.
We can use a MOVSX16 here then rely on FixupBWInst to change to
MOVSX32 if the upper bits are dead. With a special case to
not promote if it could be turned into CBW.

Then we can rely on X86MCInstLower to turn the MOVSX into CBW
very late if register allocation worked out.

Using MOVSX gives an opportunity to use the MOVSX as a both a
copy and a sign extend since the input and output register aren't
tied together.

Differential Revision: https://reviews.llvm.org/D67192

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371243 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:17:02 +00:00
Craig Topper 1935dd03cb [X86] Use MOVZX16rr8/MOVZXrm8 when extending input for i8 udivrem.
We can rely on X86FixupBWInsts to turn these into MOVZX32. This
simplifies a follow up commit to use MOVSX for i8 sdivrem with
a late optimization to use CBW when register allocation works out.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371242 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:15:04 +00:00
Craig Topper 47e9ba395e [X86] Teach FixupBWInsts to turn MOVSX16rr8/MOVZX16rr8/MOVSX16rm8/MOVZX16rm8 into their 32-bit dest equivalents when the upper part of the register is dead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371240 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 19:14:49 +00:00
Sean Fertile 5963031acc [PowerPC][XCOFF] Verify symbol table in xcoff object files. [NFC]
Extend the common/local-common testing for object files to also verify the
symbol table now that the needed functionality has landed in llvm-readobj.

Differential Revision: https://reviews.llvm.org/D66944

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371237 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 18:56:14 +00:00
Evandro Menezes 1019f58f99 [ConstantFolding] Refactor functions not available before C99 (NFC)
Note the cases when calling a function at compile time may fail if the host
does not support the C99 run time library.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371236 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 18:24:21 +00:00
Kevin P. Neal 46437f83a0 [FPEnv] Teach the IRBuilder about constrained FPToSI and FPToUI.
The IRBuilder doesn't know that the two floating point to integer instructions
have constrained equivalents. This patch adds the support by building on
the strict FP mode now present in the IRBuilder.

Reviewed by:	John McCall
Approved by:	John McCall
Differential Revision:	https://reviews.llvm.org/D67291


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371235 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 18:04:34 +00:00
Francis Visoiu Mistrih 7c9e31387c [Remarks] Add support for internalizing a remark in a string table
In order to keep remarks around, we need to make them tied to a string
table.

Users then can delete the parser and rely on the string table to keep
the memory of the strings alive and deduplicated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371233 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 17:22:51 +00:00
Oliver Cruickshank 3b462f2f23 [ARM] Add patterns for VSUB with q and r registers
Added patterns for VSUB to support q and r registers, which reduces
pressure on q registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371231 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 17:02:42 +00:00
Oliver Cruickshank 7eac9b49b7 [ARM] Add patterns for VADD with q and r registers
Added support for VADD to use q and r registers, which reduces pressure
on q registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371230 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 17:02:35 +00:00
Oliver Cruickshank 000e35cc97 [ARM] Add patterns for VMUL with q and r registers
Added support for VMUL to use an r register, this reduces pressure on
the q registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371229 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 17:02:21 +00:00
Evandro Menezes 19e6a0847f [ConstantFolding] Refactor function match for better speed (NFC)
Use an `enum` instead of string comparison to match the candidate function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371228 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 16:49:49 +00:00
Jessica Paquette 7ce009179c [AArch64][GlobalISel] Always fall back on tail calls with -tailcallopt
-tailcallopt requires that we perform different stack adjustments than with
sibling calls. For example, the `@caller_to0_from8` function in
test/CodeGen/AArch64/tail-call.ll requires that we adjust SP. Without
-tailcallopt, this adjustment does not happen. With it, however, it is expected.

So, to ensure that adding sibling call support doesn't break -tailcallopt,
make CallLowering always fall back on possible tail calls when -tailcallopt
is passed in.

Update test/CodeGen/AArch64/tail-call.ll with a GlobalISel line to make sure
that we don't differ from the SDAG implementation at any point.

Differential Revision: https://reviews.llvm.org/D67245

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371227 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 16:49:13 +00:00
JF Bastien 68fb712245 [InstCombine] pow(x, +/- 0.0) -> 1.0
Summary:
This isn't an important optimization at all... We're already doing:
  pow(x, 0.0) -> 1.0
My patch merely teaches instcombine that -0.0 does the same.

However, doing this fixes an AMAZING bug! Compile this program:

  extern "C" double pow(double, double);
  double boom(double base) {
    return pow(base, -0.0);
  }

With:
  clang++ ~/Desktop/fast-math.cpp -ffast-math -O2 -S

And clang will crash with a signal. Wow, fast math is so fast it ICEs the
compiler! Arguably, the generated math is infinitely fast.

What's actually happening is that we recurse infinitely in getPow. In debug we
hit its assertion:
  assert(Exp != 0 && "Incorrect exponent 0 not handled");

We avoid this entire mess if we instead recognize that an exponent of positive
and negative zero yield 1.0.

A separate commit, r371221, fixed the same problem. This only contains the added
tests.

<rdar://problem/54598300>

Reviewers: scanon

Subscribers: hiraditya, jkorous, dexonsmith, ributzka, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67248

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371224 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 16:26:59 +00:00
Sanjay Patel 0cd0037f5c [SimplifyLibCalls] handle pow(x,-0.0) before it can assert (PR43233)
https://bugs.llvm.org/show_bug.cgi?id=43233

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371221 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 16:10:18 +00:00
Sam Tebbs 087f60a05c [ARM] Sink add/mul(shufflevector(insertelement())) for MVE instruction selection
This patch sinks add/mul(shufflevector(insertelement())) into the basic block in which they are used so that they can then be selected together.

This is useful for various MVE instructions, such as vmla and others that take R registers.

Loop tests have been added to the vmla test file to make sure vmlas are generated in loops.

Differential revision: https://reviews.llvm.org/D66295

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371218 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 16:01:32 +00:00
Valery Pykhtin e6d4411bc1 [AMDGPU] Enable constant offset promotion to immediate operand for VMEM stores
Differential revision: https://reviews.llvm.org/D66958

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371214 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 15:33:53 +00:00
Guillaume Chatelet 0001400ef0 [Alignment][NFC] Use Align with TargetLowering::setPrefFunctionAlignment
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Reviewers: courbet

Subscribers: nemanjai, javed.absar, hiraditya, kbarton, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, s.egerton, pzheng, ychen, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67267

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371212 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 15:03:49 +00:00
Cyndy Ishida 77d51f2ce9 [Object] remove struct constructor, NFC
Summary: make POD struct by removing ctors

Reviewers: avl, dblaikie

Reviewed By: dblaikie

Subscribers: ributzka, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67251

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371211 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 15:02:22 +00:00
Guillaume Chatelet 9180d2278d [Alignment][NFC] Use Align with TargetLowering::setPrefLoopAlignment
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Reviewers: courbet

Subscribers: nemanjai, hiraditya, kbarton, MaskRay, jsji, ychen, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D67278

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371210 91177308-0d34-0410-b5e6-96231b3b80d8
2019-09-06 14:51:15 +00:00