(1) Major bug fix: DecomposeArrayRef() replaces its argument instr. and
authorVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 2 Jul 2003 01:23:15 +0000 (01:23 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Wed, 2 Jul 2003 01:23:15 +0000 (01:23 +0000)
commit799ffeede17c6fb0b00ad9cc33901fe90b12e21c
tree69cf11f8022a4f6cffb4385f55f204249ad01f4f
parent74d15d36f5ae146853b6089ed4a76a381b11cbb3
(1) Major bug fix: DecomposeArrayRef() replaces its argument instr. and
    deletes it, but we were merrily trying to fix the operands of that
    instruction anyway!  Instead, fix the replacement instruction.

(2) An Improvement: Check for and extract global values in all operands,
    not just in known pointer operands.  For example, they can occur in
    call arguments, and probably other unforeseeable places as well.
    This also eliminates the special-case handling of Load and Store.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7053 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SparcV9/SparcV9PreSelection.cpp