summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-12-03 21:37:32 +0000
committerDuncan Sands <baldrick@free.fr>2009-12-03 21:37:32 +0000
commitbbd6b6ddf4f13db48189e94a793b132e7adcaa9f (patch)
tree91e410a3afee48641e4b3f9081df554d6c3e5c1b /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp
parent18c7cbd99bbd507c04d5ae48b6284d1c0b7f1b72 (diff)
downloadbcm5719-llvm-bbd6b6ddf4f13db48189e94a793b132e7adcaa9f.tar.gz
bcm5719-llvm-bbd6b6ddf4f13db48189e94a793b132e7adcaa9f.zip
Fix ExpandShiftWithUnknownAmountBit, which was completely bogus.
Pointed out by Javier Martinez (who also provided a patch). Since this logic is not used on (for example) x86, I guess nobody noticed. Tested by generating SHL, SRL, SRA on various choices of i64 for all possible shift amounts, and comparing with gcc. Since I did this on x86-32, I had to force the use of ExpandShiftWithUnknownAmountBit. What I'm saying here is that I don't have a testcase I can add to the repository. llvm-svn: 90482
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud