aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/AddressSanitizer.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-01-24 10:40:51 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-01-24 10:40:51 +0000
commit0afa33115c5f0bce263ef370886f53bc845ab7c1 (patch)
tree526f30765d0ad6ef2e9818058106daa118cdeaae /lib/Transforms/Instrumentation/AddressSanitizer.cpp
parent63f0846f1eb43332a08811d332b813276b727eb6 (diff)
Simplify the PHI node operand rewriting.
Previously, the code would scan the PHI nodes and build up a small setvector of candidate value pairs in phi nodes to go and rewrite. Once certain the rewrite could be performed, the code walks the set, and for each one re-scans the entire PHI node list looking for nodes to rewrite operands. Instead, scan the PHI nodes once to check for hazards, and then scan it a second time to rewrite the operands to selects. No set vector, and a max of two scans. The only downside is that we might form identical selects, but instcombine or anything else should fold those easily, and it seems unlikely to happen often. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/AddressSanitizer.cpp')
0 files changed, 0 insertions, 0 deletions