public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "arsen at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/108250] [12/13/14 regression] llvm-tblgen miscompiled on powerpc-unknown-linux-gnu since r12-5383-g22c242342e38eb Date: Sun, 14 May 2023 12:06:44 +0000 [thread overview] Message-ID: <bug-108250-4-ZeojKfquc6@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108250-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108250 --- Comment #13 from Arsen Arsenović <arsen at gcc dot gnu.org> --- as an update, we've recently gotten valgrind working on a ppc32 machine, and we get the following: ==2738== Conditional jump or move depends on uninitialised value(s) ==2738== at 0x17E55C: __eq (tuple:1472) ==2738== by 0x17E55C: operator==<bool, bool, bool, bool> (tuple:1504) ==2738== by 0x17E55C: operator!=<bool, bool, bool, bool> (tuple:1553) ==2738== by 0x17E55C: llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::{lambda(llvm::MVT, llvm::MVT)#4}::operator()(llvm::MVT, llvm::MVT) const [clone .constprop.0] (CodeGenDAGPatterns.cpp:556) ==2738== by 0x180E9F: __invoke_impl<bool, llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::<lambda(llvm::MVT, llvm::MVT)>&, llvm::MVT&, llvm::MVT&> (invoke.h:61) ==2738== by 0x180E9F: __invoke<llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::<lambda(llvm::MVT, llvm::MVT)>&, llvm::MVT&, llvm::MVT&> (invoke.h:96) ==2738== by 0x180E9F: __call<bool, llvm::MVT&, 0, 1> (functional:495) ==2738== by 0x180E9F: operator()<llvm::MVT&> (functional:580) ==2738== by 0x180E9F: bool berase_if<std::_Bind<llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::{lambda(llvm::MVT, llvm::MVT)#4} (std::_Placeholder<1>, llvm::MVT)> >(llvm::MachineValueTypeSet&, std::_Bind<llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::{lambda(llvm::MVT, llvm::MVT)#4} (std::_Placeholder<1>, llvm::MVT)>) (CodeGenDAGPatterns.cpp:59) ==2738== by 0x199113: llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool) [clone .part.0] (CodeGenDAGPatterns.cpp:573) ==2738== by 0x1A4013: ApplyTypeConstraint (CodeGenDAGPatterns.cpp:1641) ==2738== by 0x1A4013: ApplyTypeConstraints (CodeGenDAGPatterns.h:1269) ==2738== by 0x1A4013: llvm::TreePatternNode::ApplyTypeConstraints(llvm::TreePattern&, bool) (CodeGenDAGPatterns.cpp:2564) ==2738== by 0x1A4DFB: llvm::TreePattern::InferAllTypes(llvm::StringMap<llvm::SmallVector<llvm::TreePatternNode*, 1u>, llvm::MallocAllocator> const*) (CodeGenDAGPatterns.cpp:3094) ==2738== by 0x1AE02F: llvm::CodeGenDAGPatterns::ParsePatternFragments(bool) (CodeGenDAGPatterns.cpp:3352) ==2738== by 0x1AE893: llvm::CodeGenDAGPatterns::CodeGenDAGPatterns(llvm::RecordKeeper&, std::function<void (llvm::TreePattern*)>) (CodeGenDAGPatterns.cpp:3195) ==2738== by 0x2CF00B: GlobalISelEmitter (GlobalISelEmitter.cpp:3809) ==2738== by 0x2CF00B: llvm::EmitGlobalISel(llvm::RecordKeeper&, llvm::raw_ostream&) (GlobalISelEmitter.cpp:6312) ==2738== by 0x352E1F: (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&) (TableGen.cpp:251) ==2738== by 0x3E8447: llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) (Main.cpp:122) ==2738== by 0x134BD7: main (TableGen.cpp:296) ==2738== ==2738== Conditional jump or move depends on uninitialised value(s) ==2738== at 0x17E55C: __eq (tuple:1472) ==2738== by 0x17E55C: operator==<bool, bool, bool, bool> (tuple:1504) ==2738== by 0x17E55C: operator!=<bool, bool, bool, bool> (tuple:1553) ==2738== by 0x17E55C: llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::{lambda(llvm::MVT, llvm::MVT)#4}::operator()(llvm::MVT, llvm::MVT) const [clone .constprop.0] (CodeGenDAGPatterns.cpp:556) ==2738== by 0x1810FF: __invoke_impl<bool, llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::<lambda(llvm::MVT, llvm::MVT)>&, llvm::MVT&, llvm::MVT&> (invoke.h:61) ==2738== by 0x1810FF: __invoke<llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::<lambda(llvm::MVT, llvm::MVT)>&, llvm::MVT&, llvm::MVT&> (invoke.h:96) ==2738== by 0x1810FF: __call<bool, llvm::MVT&, 0, 1> (functional:495) ==2738== by 0x1810FF: operator()<llvm::MVT&> (functional:580) ==2738== by 0x1810FF: bool berase_if<std::_Bind<llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::{lambda(llvm::MVT, llvm::MVT)#4} (llvm::MVT, std::_Placeholder<1>)> >(llvm::MachineValueTypeSet&, std::_Bind<llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool)::{lambda(llvm::MVT, llvm::MVT)#4} (llvm::MVT, std::_Placeholder<1>)>) (CodeGenDAGPatterns.cpp:59) ==2738== by 0x19919B: llvm::TypeInfer::EnforceSmallerThan(llvm::TypeSetByHwMode&, llvm::TypeSetByHwMode&, bool) [clone .part.0] (CodeGenDAGPatterns.cpp:580) ==2738== by 0x1A4013: ApplyTypeConstraint (CodeGenDAGPatterns.cpp:1641) ==2738== by 0x1A4013: ApplyTypeConstraints (CodeGenDAGPatterns.h:1269) ==2738== by 0x1A4013: llvm::TreePatternNode::ApplyTypeConstraints(llvm::TreePattern&, bool) (CodeGenDAGPatterns.cpp:2564) ==2738== by 0x1A4DFB: llvm::TreePattern::InferAllTypes(llvm::StringMap<llvm::SmallVector<llvm::TreePatternNode*, 1u>, llvm::MallocAllocator> const*) (CodeGenDAGPatterns.cpp:3094) ==2738== by 0x1AE02F: llvm::CodeGenDAGPatterns::ParsePatternFragments(bool) (CodeGenDAGPatterns.cpp:3352) ==2738== by 0x1AE893: llvm::CodeGenDAGPatterns::CodeGenDAGPatterns(llvm::RecordKeeper&, std::function<void (llvm::TreePattern*)>) (CodeGenDAGPatterns.cpp:3195) ==2738== by 0x2CF00B: GlobalISelEmitter (GlobalISelEmitter.cpp:3809) ==2738== by 0x2CF00B: llvm::EmitGlobalISel(llvm::RecordKeeper&, llvm::raw_ostream&) (GlobalISelEmitter.cpp:6312) ==2738== by 0x352E1F: (anonymous namespace)::LLVMTableGenMain(llvm::raw_ostream&, llvm::RecordKeeper&) (TableGen.cpp:251) ==2738== by 0x3E8447: llvm::TableGenMain(char const*, bool (*)(llvm::raw_ostream&, llvm::RecordKeeper&)) (Main.cpp:122) ==2738== by 0x134BD7: main (TableGen.cpp:296) (and a few similar diagnostics) these do not happen on x86 and there seems to be no conditional compilation. I'll try to finish up a reduction soon, but I've been swamped as of late. I have a reduction that deoptimized most code, leaving us with just a few functions still being optimized, while still reproducing the bug, so that might shed some light too. presuming that some bit of GCC decided to remove a store that'd initialize those values, any hint on how to see what?
next prev parent reply other threads:[~2023-05-14 12:06 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-12-28 23:35 [Bug c/108250] New: [12/13 " sam at gentoo dot org 2022-12-28 23:55 ` [Bug c/108250] " sam at gentoo dot org 2022-12-29 0:04 ` sam at gentoo dot org 2022-12-29 0:06 ` sam at gentoo dot org 2022-12-29 2:13 ` [Bug ipa/108250] " pinskia at gcc dot gnu.org 2022-12-29 2:48 ` sam at gentoo dot org 2022-12-29 3:14 ` sam at gentoo dot org 2022-12-29 16:54 ` arsen at aarsen dot me 2022-12-29 17:22 ` arsen at aarsen dot me 2023-01-02 3:44 ` pinskia at gcc dot gnu.org 2023-01-02 3:46 ` pinskia at gcc dot gnu.org 2023-01-03 1:18 ` sam at gentoo dot org 2023-01-09 14:09 ` rguenth at gcc dot gnu.org 2023-01-13 16:59 ` segher at gcc dot gnu.org 2023-03-27 12:27 ` rguenth at gcc dot gnu.org 2023-05-08 12:26 ` [Bug ipa/108250] [12/13/14 " rguenth at gcc dot gnu.org 2023-05-14 12:06 ` arsen at gcc dot gnu.org [this message] 2024-03-28 3:27 ` [Bug ipa/108250] [12/13 " sjames at gcc dot gnu.org 2024-03-28 3:31 ` sjames at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-108250-4-ZeojKfquc6@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).