summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-cov/TestingSupport.cpp
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2014-08-22 22:45:57 +0000
committerJingyue Wu <jingyue@google.com>2014-08-22 22:45:57 +0000
commitec33fa9aca4dc1baaeffcd8876fb385e1f8cb86e (patch)
treee8ff1c2f1c7db7219bf36dbd35eb63cd1ccd8d84 /llvm/tools/llvm-cov/TestingSupport.cpp
parent86084661482dc942d7ea6afdad3e9e982590b5b0 (diff)
downloadbcm5719-llvm-ec33fa9aca4dc1baaeffcd8876fb385e1f8cb86e.tar.gz
bcm5719-llvm-ec33fa9aca4dc1baaeffcd8876fb385e1f8cb86e.zip
[SROA] Fold a PHI node if all its incoming values are the same
Summary: Fixes PR20425. During slice building, if all of the incoming values of a PHI node are the same, replace the PHI node with the common value. This simplification makes alloca's used by PHI nodes easier to promote. Test Plan: Added three more tests in phi-and-select.ll Reviewers: nlewycky, eliben, meheff, chandlerc Reviewed By: chandlerc Subscribers: zinovy.nis, hfinkel, baldrick, llvm-commits Differential Revision: http://reviews.llvm.org/D4659 llvm-svn: 216299
Diffstat (limited to 'llvm/tools/llvm-cov/TestingSupport.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud