summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-03 18:15:05 +0000
committerChris Lattner <sabre@nondot.org>2009-02-03 18:15:05 +0000
commit73eff2e6e87beff78154818727eabe2d52c64bce (patch)
tree11a17c036cef255f1f88a7ddc63d1ed2f87231ad /clang/lib/CodeGen/CGExpr.cpp
parent8fc6561993f5ce1d3dd79320b774b5b9a3fe57bc (diff)
downloadbcm5719-llvm-73eff2e6e87beff78154818727eabe2d52c64bce.tar.gz
bcm5719-llvm-73eff2e6e87beff78154818727eabe2d52c64bce.zip
Make SROA produce a vector only when the alloca is actually
accessed at least once as a vector. This prevents it from compiling the example in not-a-vector into: define double @test(double %A, double %B) { %tmp4 = insertelement <7 x double> undef, double %A, i32 0 %tmp = insertelement <7 x double> %tmp4, double %B, i32 4 %tmp2 = extractelement <7 x double> %tmp, i32 4 ret double %tmp2 } instead, producing the integer code. Producing vectors when they aren't otherwise in the program is dangerous because a lot of other code treats them carefully and doesn't want to break them down. OTOH, many things want to break down tasty i448's. llvm-svn: 63638
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud