summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-15 16:56:06 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-09-15 16:56:06 +0000
commita8a4953fdf3c3b1edfcf25f14ac1e6e49ab32cb7 (patch)
treefd88c0138b847f65be23cf9353d9f5ef51092eee /llvm/lib/CodeGen/GlobalISel
parent4e46ea3946cb12a165574a973f5b928fc692c850 (diff)
downloadbcm5719-llvm-a8a4953fdf3c3b1edfcf25f14ac1e6e49ab32cb7.tar.gz
bcm5719-llvm-a8a4953fdf3c3b1edfcf25f14ac1e6e49ab32cb7.zip
[GlobalISel] findGISelOptimalMemOpLowering - remove dead initalization. NFCI.
Fixes static analyzer warning that "Value stored to 'NewTySize' during its initialization is never read". llvm-svn: 371937
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
index 76e82a90a32..6b2bd1691e6 100644
--- a/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
@@ -673,10 +673,8 @@ static bool findGISelOptimalMemOpLowering(
// SDAGisms map cleanly to GISel concepts.
if (NewTy.isVector())
NewTy = NewTy.getSizeInBits() > 64 ? LLT::scalar(64) : LLT::scalar(32);
+ NewTy = LLT::scalar(PowerOf2Floor(NewTy.getSizeInBits() - 1));
unsigned NewTySize = NewTy.getSizeInBytes();
-
- NewTy = LLT::scalar(PowerOf2Floor(NewTy.getSizeInBits()-1));
- NewTySize = NewTy.getSizeInBytes();
assert(NewTySize > 0 && "Could not find appropriate type");
// If the new LLT cannot cover all of the remaining bits, then consider
OpenPOWER on IntegriCloud