summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/scev-interchange.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-26 22:53:46 +0000
committerDan Gohman <gohman@apple.com>2009-06-26 22:53:46 +0000
commit667d787c0a21cf3f5dfcde03ca471162ba35b614 (patch)
tree717e8620e15b156cca07901a296ab52ea05ac3c5 /test/CodeGen/X86/scev-interchange.ll
parentacec7b35aa031a98dcd9ab9263445d1008ee60e5 (diff)
downloadllvm-667d787c0a21cf3f5dfcde03ca471162ba35b614.tar.gz
llvm-667d787c0a21cf3f5dfcde03ca471162ba35b614.tar.bz2
llvm-667d787c0a21cf3f5dfcde03ca471162ba35b614.tar.xz
Incorporate the insertion point into the key of SCEVExpander's CSE map.
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/scev-interchange.ll')
0 files changed, 0 insertions, 0 deletions