This revision was automatically updated to reflect the committed changes.
Closed by commit rL323281: Adjust MaxAtomicInlineWidth for i386/i486 targets.
(authored by wmi, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D42154?vs=130076&i
rjmccall accepted this revision.
rjmccall added a comment.
This revision is now accepted and ready to land.
Well, my point is that the example in the linked bug is asking for 486
code-generation, which is apparently unsupported by LLVM.
Anyway, it's not a good reason to hold up this patch, since
wmi added a comment.
In https://reviews.llvm.org/D42154#983840, @rjmccall wrote:
> In https://reviews.llvm.org/D42154#977991, @wmi wrote:
>
> > In https://reviews.llvm.org/D42154#977975, @efriedma wrote:
> >
> > > The LLVM backend currently assumes every CPU is Pentium-compatible. If
> > > we'r
rjmccall added a comment.
In https://reviews.llvm.org/D42154#977991, @wmi wrote:
> In https://reviews.llvm.org/D42154#977975, @efriedma wrote:
>
> > The LLVM backend currently assumes every CPU is Pentium-compatible. If
> > we're going to change that in clang, we should probably fix the backend
craig.topper added inline comments.
Comment at: lib/Basic/Targets/X86.h:472
+CPUKind Kind = getCPUKind(Opts.CPU);
+if (Kind >= CK_i586 || Kind == CK_Generic)
+ MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
wmi wrote:
> wmi wrote:
> > craig.toppe
wmi added inline comments.
Comment at: lib/Basic/Targets/X86.h:472
+CPUKind Kind = getCPUKind(Opts.CPU);
+if (Kind >= CK_i586 || Kind == CK_Generic)
+ MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
wmi wrote:
> craig.topper wrote:
> > craig.toppe
wmi added a comment.
In https://reviews.llvm.org/D42154#977975, @efriedma wrote:
> The LLVM backend currently assumes every CPU is Pentium-compatible. If we're
> going to change that in clang, we should probably fix the backend as well.
With the patch, for i386/i486 targets, clang will genera
craig.topper added inline comments.
Comment at: lib/Basic/Targets/X86.h:472
+CPUKind Kind = getCPUKind(Opts.CPU);
+if (Kind >= CK_i586 || Kind == CK_Generic)
+ MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
craig.topper wrote:
> efriedma wrote:
>
craig.topper added inline comments.
Comment at: lib/Basic/Targets/X86.h:472
+CPUKind Kind = getCPUKind(Opts.CPU);
+if (Kind >= CK_i586 || Kind == CK_Generic)
+ MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
efriedma wrote:
> What exactly does "CK
efriedma added a comment.
The LLVM backend currently assumes every CPU is Pentium-compatible. If we're
going to change that in clang, we should probably fix the backend as well.
Comment at: lib/Basic/Targets/X86.h:472
+CPUKind Kind = getCPUKind(Opts.CPU);
+if (Kind >=
wmi created this revision.
wmi added reviewers: rjmccall, eli.friedman, rsmith.
Herald added subscribers: cfe-commits, eraman, sanjoy.
This is to fix the bug reported in
https://bugs.llvm.org/show_bug.cgi?id=34347#c6
Currently, all MaxAtomicInlineWidth of x86-32 targets are set to 64. However,
11 matches
Mail list logo