[NoTTI] reject negative scale in addressing mode
authorJingyue Wu <jingyue@google.com>
Fri, 8 May 2015 18:07:24 +0000 (18:07 +0000)
committerJingyue Wu <jingyue@google.com>
Fri, 8 May 2015 18:07:24 +0000 (18:07 +0000)
commitc417f302cbfe67ac25521b391199ec3ea1fa1f0b
treef9a76f1135300e6f959ae9d852cb33385c282ea7
parentd90099d36ca7359e5077e295da2bcf5f7c5a386f
[NoTTI] reject negative scale in addressing mode

Summary:
I noticed this bug when deubging a WIP on LSR. I wonder whether and how we
should add a regression test for this.

Test Plan: no tests failed.

Reviewers: atrick

Subscribers: hfinkel, llvm-commits

Differential Revision: http://reviews.llvm.org/D9536

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236887 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/TargetTransformInfoImpl.h
test/Transforms/LoopStrengthReduce/negative-scale.ll [new file with mode: 0644]