summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorAyonam Ray <ayonam@rrlogic.co.in>2019-01-01 06:37:50 +0000
committerAyonam Ray <ayonam@rrlogic.co.in>2019-01-01 06:37:50 +0000
commitc471bb2e673a916e5daa5ba643eabbd30a20fc4a (patch)
treec33fdd5e2188aee6ae523ba2358ff757966e46c8 /libcxx
parent4952e668f8e525820bb59ea78c1e5eeea3da68fe (diff)
downloadbcm5719-llvm-c471bb2e673a916e5daa5ba643eabbd30a20fc4a.tar.gz
bcm5719-llvm-c471bb2e673a916e5daa5ba643eabbd30a20fc4a.zip
Omit range checks from jump tables when lowering switches with unreachable
default During the lowering of a switch that would result in the generation of a jump table, a range check is performed before indexing into the jump table, for the switch value being outside the jump table range and a conditional branch is inserted to jump to the default block. In case the default block is unreachable, this conditional jump can be omitted. This patch implements omitting this conditional branch for unreachable defaults. Review Reference: D52002 llvm-svn: 350186
Diffstat (limited to 'libcxx')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud