[PATCH] D11817: Enable Shrink Wrapping for PPC64.

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 19:07:49 PDT 2015


chapuni added a subscriber: chapuni.
chapuni added a comment.

Seems it might trigger crash in CodeGen/PowerPC/remap-crash.ll .
Investigating. I reproduced the crash on i686-linux (compiled with -m32).

See also

- http://bb.pgr.jp/builders/ninja-x64-msvc-RA-centos6
- http://bb.pgr.jp/builders/clang-3stage-i686-linux

FYI, I used the patch to catch crash.

  --- a/llvm/lib/CodeGen/MachineInstr.cpp
  +++ b/llvm/lib/CodeGen/MachineInstr.cpp
  @@ -866,6 +866,12 @@ void MachineInstr::addMemOperand(MachineFunction &MF,
  
   bool MachineInstr::hasPropertyInBundle(unsigned Mask, QueryType Type) const {
     assert(!isBundledWithPred() && "Must be called on bundle header");
  +  if (const auto MBB = getParent()) {
  +    const auto MF = MBB->getParent();
  +    if (MF) {
  +      assert(&MF->getSubtarget());
  +    }
  +  }
     for (MachineBasicBlock::const_instr_iterator MII = this;; ++MII) {
       if (MII->getDesc().getFlags() & Mask) {
         if (Type == AnyInBundle)


http://reviews.llvm.org/D11817





More information about the llvm-commits mailing list