mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
another fastpath
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20674 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
67c2d18166
commit
0c9707a190
@ -349,7 +349,8 @@ void GraphBuilder::visitGetElementPtrInst(User &GEP) {
|
||||
|
||||
// If all of the indices are zero, the result points to the operand without
|
||||
// applying the type.
|
||||
if (AllZeros) {
|
||||
if (AllZeros || (!Value.isNull() &&
|
||||
Value.getNode()->isNodeCompletelyFolded())) {
|
||||
setDestTo(GEP, Value);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user