aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-09-08 03:44:51 +0000
committerChris Lattner <sabre@nondot.org>2009-09-08 03:44:51 +0000
commitd3210e1a204d1d3c80e84051ec2d74efc8925c0f (patch)
tree9a03368048b618254d7cdbdc12998f032fcc8a48 /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parentde6a44b790b6ff808497fea76c33d1c671de9465 (diff)
downloadllvm-d3210e1a204d1d3c80e84051ec2d74efc8925c0f.zip
llvm-d3210e1a204d1d3c80e84051ec2d74efc8925c0f.tar.gz
llvm-d3210e1a204d1d3c80e84051ec2d74efc8925c0f.tar.bz2
instcombine transforms vector loads that are only used by
extractelement operations into a bitcast of the pointer, then a gep, then a scalar load. Disable this when the vector only has one element, because it leads to infinite loops in instcombine (PR4908). This transformation seems like a really bad idea to me, as it will likely disable CSE of vector load/stores etc and can be better done in the code generator when profitable. This goes all the way back to the first days of packed types, r25299 specifically. I'll let those people who care about the performance of vector code decide what to do with this. llvm-svn: 81185
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions