summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py
diff options
context:
space:
mode:
authorSebastian Pop <sebpop@gmail.com>2016-09-22 14:45:40 +0000
committerSebastian Pop <sebpop@gmail.com>2016-09-22 14:45:40 +0000
commit440f15b7fcc97dd628095c6c00b1ab2dd3df55d2 (patch)
tree2c211abd0b76bcae664caebf2306f38ebdc93261 /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py
parent9546fffbfe2be1709a0ca14229d40dde1a9d9666 (diff)
downloadbcm5719-llvm-440f15b7fcc97dd628095c6c00b1ab2dd3df55d2.tar.gz
bcm5719-llvm-440f15b7fcc97dd628095c6c00b1ab2dd3df55d2.zip
GVN-hoist: only hoist relevant scalar instructions
Without this patch, GVN-hoist would think that a branch instruction is a scalar instruction and would try to value number it. The patch filters out all such kind of irrelevant instructions. A bit frustrating is that there is no easy way to discard all those very infrequent instructions, a bit like isa<TerminatorInst> that stands for a large family of instructions. I'm thinking that checking for those very infrequent other instructions would cost us more in compilation time than just letting those instructions getting numbered, so I'm still thinking that a simpler check: if (isa<TerminatorInst>(I)) return false; is better than listing all the other less frequent instructions. Differential Revision: https://reviews.llvm.org/D23929 llvm-svn: 282160
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallUserDefinedFunction.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud