OSDN Git Service

Fix LSR's IV sorting function to explicitly sort by bitwidth
authorDan Gohman <gohman@apple.com>
Fri, 13 Feb 2009 00:26:43 +0000 (00:26 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 13 Feb 2009 00:26:43 +0000 (00:26 +0000)
commitbc511725f08c45984be6ff47d069c3773a2f2eb0
tree3fe4d37e609073b439fec8149bc69306177c8f95
parentb445d740b2b4e30f03fb4991ea7e561fb5d585af
Fix LSR's IV sorting function to explicitly sort by bitwidth
after sorting by stride value. This prevents it from missing
IV reuse opportunities in a host-sensitive manner.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64415 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/lsr-sort.ll [new file with mode: 0644]