diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2018-04-24 00:25:01 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2018-04-24 00:25:01 +0000 |
commit | 8e807bf3fa4157ef16b314c1b0d0e5ddc2c3de88 (patch) | |
tree | c8a58c326bc1dca51bd817ac93c9dabdf2e8acc5 /llvm/include/llvm-c/Transforms | |
parent | cf30f6425a667dc1656588a8248c9a9d13366990 (diff) | |
download | bcm5719-llvm-8e807bf3fa4157ef16b314c1b0d0e5ddc2c3de88.tar.gz bcm5719-llvm-8e807bf3fa4157ef16b314c1b0d0e5ddc2c3de88.zip |
Reland r301880(!): "[InstSimplify] Handle selects of GEPs with 0 offset"
I was reminded today that this patch got reverted in r301885. I can no
longer reproduce the failure that caused the revert locally (...almost
one year later), and the patch applied pretty cleanly, so I guess we'll
see if the bots still get angry about it.
The original breakage was InstSimplify complaining (in "assertion
failed" form) about getting passed some crazy IR when running `ninja
check-sanitizer`. I'm unable to find traces of what, exactly, said crazy
IR was. I suppose we'll find out pretty soon if that's still the case.
:)
Original commit:
Author: gbiv
Date: Mon May 1 18:12:08 2017
New Revision: 301880
URL: http://llvm.org/viewvc/llvm-project?rev=301880&view=rev
Log:
[InstSimplify] Handle selects of GEPs with 0 offset
In particular (since it wouldn't fit nicely in the summary):
(select (icmp eq V 0) P (getelementptr P V)) -> (getelementptr P V)
Differential Revision: https://reviews.llvm.org/D31435
llvm-svn: 330667
Diffstat (limited to 'llvm/include/llvm-c/Transforms')
0 files changed, 0 insertions, 0 deletions