User Details
- User Since
- Apr 13 2018, 4:23 PM (144 w, 1 d)
Yesterday
Thu, Jan 14
drop old pass manager test from callbr-critical-edge-splitting2.ll since it does not add signal
- use CHECK-NEXT, drop -passes=loop-reduce
This patch also fixes the test case in D88438 (and D88438 also fixes this test case). So two different ways of solving similar bugs.
(ie. either would fix https://github.com/ClangBuiltLinux/linux/issues/1161 and https://github.com/ClangBuiltLinux/linux/issues/1252). I don't feel strongly either way; maybe reviewers could take a look at both approaches?
- run the same invocations for both tests, remove unnecessary target_triple
- add comments and FileCheck to tests
- mv my test
- remove comment from test, simplify lambda
- rebase, fix check for only non-default destination edges as per Bill
- looks like this also fixes Fixes: https://github.com/ClangBuiltLinux/linux/issues/1252 / D94470
- Added test case from D94470.
Patch fixes the reported bug; added test cases produces a crash before patch is applied. LGTM with minor nit.
Wed, Jan 13
@nathanchance also pointed out I had https://reviews.llvm.org/D88438 to fix a similar issue (I forgot about that patch, I should try it with this test case, too).
Tue, Jan 12
Patch LGTM; just curious about the comment, since that's not what's occurring in the test AFAICT. Thanks for the patch!
ah! probably not, let me rebuild
I guess the presence of the profile data makes it difficult to use bugpoint to reduce the test case more?
Mon, Jan 11
Sure. I'll commit it.
This differs from the little endian targets, which always pass
-mbig-endian.
Fri, Jan 8
Much thanks for the patch!
Compiler crash reported in: https://bugs.llvm.org/show_bug.cgi?id=48695
Thu, Jan 7
This causes:
$ clang -E -fno-integrated-cc1 x.c | tee foo.txt |head
to crash. If I revert 9a3f892d018238dce5181e458905311db8e682f5 and 4624e83ce7b124545b55e45ba13f2d900ed65654, the crash goes away.
Wed, Jan 6
It sounds like portage should be using something like setuidgid to drop privileges for parts of the build.
Tue, Jan 5
Wed, Dec 23
TODO: fix failing tests:
- lld/test/ELF/error-handling-script-linux.test
- llvm/test/ExecutionEngine/JITLink/X86/ELF_x86-64_relocations.s
Tue, Dec 22
The commit message of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f923efbcfdbaa4391874eeda676b08fcf9ad6e99 also has good background/history.
If tlbiel %r4 is equivalent encoding wise to tlbiel %r4, 0, then we could work around this limitation in Clang's integrated assembler via kernel patch:
diff --git a/arch/powerpc/mm/book3s64/hash_native.c b/arch/powerpc/mm/book3s64/hash_native.c index 52e170bd95ae..3e902dc91582 100644 --- a/arch/powerpc/mm/book3s64/hash_native.c +++ b/arch/powerpc/mm/book3s64/hash_native.c @@ -267,7 +267,7 @@ static inline void __tlbiel(unsigned long vpn, int psize, int apsize, int ssize) va |= ssize << 8; sllp = get_sllp_encoding(apsize); va |= sllp << 5; - asm volatile(ASM_FTR_IFSET("tlbiel %0", "tlbiel %0,0", %1) + asm volatile(ASM_FTR_IFSET("tlbiel %0", "tlbiel %0", %1) : : "r" (va), "i" (CPU_FTR_ARCH_206) : "memory"); break;
which looks like a mistake in the kernel to not use the same number of operands for either case (though they should encode the same); but I'd much rather improve LLVM if possible.
Dec 17 2020
Thanks Jian! (I can get a little further assembling the Linux kernel's arch/arm/probes/kprobes/test-arm.o (allyesconfig) with Clang's integrated assembler with this; though that file now has additional failures unrelated to this patch.
Dec 16 2020
Thanks for the patch!
Regarding to usage in kernel, I think it depends on which arch are you building for, if it's with -mcpu=pwr9 and above, yes, I would recommend we update the code to use 5 operands basic form.
According to ISA 3.1 https://ibm.ent.box.com/s/hhjfw0x0lrbtyzmiaffnbxh2fuo0fog0 Page 1239 there are only two forms
Dec 14 2020
Dec 10 2020
Thanks for the patch.
Dec 7 2020
@lebedev.ri would you mind re-reviewing when you have a chance?
s/MSDN/Microsoft Docs/
Dec 4 2020
I suspect that duplicateInstruction is not updating isInlineAsmBrIndirectTarget correctly when moving the INLINEASM_BR, but will have to verify.
Sorry, I should not have waiting this long to update this patch...
- rebased, s/Inline/Inlining/
Dec 2 2020
Hi @trixirt , thanks for the follow up. I think the lint feedback about qualifying auto with pointers where applicable would be nice to have. Please make those suggested changes.
Nov 30 2020
Cool, that should be all of the feedback addressed. How does it look?
- rebase on https://reviews.llvm.org/D92350, use split-file, simplify assert condition, rewrite unclear comment.