MergeFunctions: test alloca better
authorJF Bastien <jfb@google.com>
Tue, 12 Apr 2016 00:03:26 +0000 (00:03 +0000)
committerJF Bastien <jfb@google.com>
Tue, 12 Apr 2016 00:03:26 +0000 (00:03 +0000)
commit4f43cfd2c2b8cfe63c1bb5d6dfbdf8ac6f9c4e76
tree7a35c3aaf52027c74e784bd9b8e2f541831267a2
parentd52f4128d651348a653e7625e13dc45bafd5e513
MergeFunctions: test alloca better

r237193 fix handling of alloca size / align in MergeFunctions, but only tested one and didn't follow FunctionComparator::cmpOperations's usual comparison pattern. It also didn't update Instruction.cpp:haveSameSpecialState which I'll do separately.

llvm-svn: 266022
llvm/lib/Transforms/IPO/MergeFunctions.cpp
llvm/test/Transforms/MergeFunc/alloca.ll