Skip to content
  • Dan Gohman's avatar
    Incorporate the insertion point into the key of SCEVExpander's CSE map. · daafbe61
    Dan Gohman authored
    This helps it avoid reusing an instruction that doesn't dominate all
    of the users, in cases where the original instruction was inserted
    before all of the users were known.  This may result in redundant
    expansions of sub-expressions that depend on loop-unpredictable values
    in some cases, however this isn't very common, and it primarily impacts
    IndVarSimplify, so GVN can be expected to clean these up.
    
    This eliminates the need for IndVarSimplify's FixUsesBeforeDefs,
    which fixes several bugs.
    
    llvm-svn: 74352
    daafbe61
Loading