[all-commits] [llvm/llvm-project] 2d7bab: [InstCombine] Always create new GEPs when swapping...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Mon May 30 07:49:33 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2d7bab666f5a71a70da0ed7925fda5ce634d21e5
https://github.com/llvm/llvm-project/commit/2d7bab666f5a71a70da0ed7925fda5ce634d21e5
Author: Nikita Popov <npopov at redhat.com>
Date: 2022-05-30 (Mon, 30 May 2022)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
M llvm/test/Transforms/InstCombine/gep-combine-loop-invariant.ll
Log Message:
-----------
[InstCombine] Always create new GEPs when swapping GEPs
As the long explanatory comment attests, performing the modification
in place is pretty tricky. Drop this unnecessary complexity and
always create new instructions.
This should be NFC-ish, but can probably cause difference due to
worklist order.
More information about the All-commits
mailing list