summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Dominators.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2017-08-16 16:09:22 +0000
committerHal Finkel <hfinkel@anl.gov>2017-08-16 16:09:22 +0000
commit9e54b7093abda564ddd88bb0c8ee2c97be50082a (patch)
treed69a5e581161d877366d04008f59e52279b3e0c0 /llvm/lib/IR/Dominators.cpp
parent8c3edfef6b911f8e0e2d64169ffaea7077481f3f (diff)
downloadbcm5719-llvm-9e54b7093abda564ddd88bb0c8ee2c97be50082a.tar.gz
bcm5719-llvm-9e54b7093abda564ddd88bb0c8ee2c97be50082a.zip
[BDCE] Don't check demanded bits on unsized types
To clear assumptions that are potentially invalid after trivialization, we need to walk the use/def chain. Normally, the only way to reach an instruction with an unsized type is via an instruction that has side effects (or otherwise will demand its input bits). That would stop the walk. However, if we have a readnone function that returns an unsized type (e.g., void), we must avoid asking for the demanded bits of the function call's return value. A void-returning readnone function is always dead (and so we can stop walking the use/def chain here), but the check is necessary to avoid asserting. Fixes PR34211. llvm-svn: 311014
Diffstat (limited to 'llvm/lib/IR/Dominators.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud