http://llvm.org/bugs/show_bug.cgi?id=19985

            Bug ID: 19985
           Summary: InstCombiner::SimplifyDemandedBit can modify an
                    instruction without adding it to the worklist
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

bool InstCombiner::SimplifyDemandedBits(Use &U, APInt DemandedMask,
                                        APInt &KnownZero, APInt &KnownOne,
                                        unsigned Depth) {
  Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask,
                                          KnownZero, KnownOne, Depth);
  if (!NewVal) return false;
  U = NewVal;
  return true;
}

The use is modified, but the instructions in not added back to the worklist.

I don't have a testcase where this changes the result. I just noticed an
instruction being modified and not immediately being revisited while looking at
another issuer in a debugger.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to