[llvm-commits] [llvm] r164120 - in /llvm/trunk: lib/Transforms/Scalar/SROA.cpp test/Transforms/SROA/basictest.ll
Chandler Carruth
chandlerc at gmail.com
Tue Sep 18 06:02:07 PDT 2012
Author: chandlerc
Date: Tue Sep 18 08:02:06 2012
New Revision: 164120
URL: http://llvm.org/viewvc/llvm-project?rev=164120&view=rev
Log:
Fix a warning in release builds and a test case I forgot to update with
a fix to getCommonType in the previous patch.
Modified:
llvm/trunk/lib/Transforms/Scalar/SROA.cpp
llvm/trunk/test/Transforms/SROA/basictest.ll
Modified: llvm/trunk/lib/Transforms/Scalar/SROA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SROA.cpp?rev=164120&r1=164119&r2=164120&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SROA.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SROA.cpp Tue Sep 18 08:02:06 2012
@@ -2572,6 +2572,7 @@
Value *Store = IRB.CreateStore(
IRB.CreateExtractValue(Agg, Indices, Name + ".extract"),
IRB.CreateInBoundsGEP(Ptr, GEPIndices, Name + ".gep"));
+ (void)Store;
DEBUG(dbgs() << " to: " << *Store << "\n");
}
Modified: llvm/trunk/test/Transforms/SROA/basictest.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SROA/basictest.ll?rev=164120&r1=164119&r2=164120&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SROA/basictest.ll (original)
+++ llvm/trunk/test/Transforms/SROA/basictest.ll Tue Sep 18 08:02:06 2012
@@ -408,7 +408,7 @@
define i16 @test5() {
; CHECK: @test5
-; CHECK: alloca float
+; CHECK: alloca i32
; CHECK: ret i16 %
entry:
More information about the llvm-commits
mailing list