In preparation for later fixes to the non-integral addrspace handling (D59661)
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
LGTM w/one required change.
lib/Transforms/Utils/VNCoercion.cpp | ||
---|---|---|
314 ↗ | (On Diff #191976) | Remove this line, not NFC |
lib/Transforms/Utils/VNCoercion.cpp | ||
---|---|---|
314 ↗ | (On Diff #191976) | As far as I could tell, all later code paths are guarded by the full condition that I'm now also using here: https://github.com/llvm-mirror/llvm/blob/7b016165658561a2ec5bdffea134fe50cc9bcf7a/lib/Analysis/ConstantFolding.cpp#L538 I thought it seemed odd to check only part of the condition early, while deferring the full check until later. |
331 ↗ | (On Diff #191976) | OTOH, this might not be strictly NFC, since, while not a semantic difference in IR, I thought it seemed like ConstantFoldLoadFromConstPtr may sometimes have difficultly looking through this BitCast. |
@vtjnash Was the review comment addressed? If so I assume you want me to land this, since you don't have commit?
lib/Transforms/Utils/VNCoercion.cpp | ||
---|---|---|
314 ↗ | (On Diff #191976) | Bump. I wanted to confirm you agree now that this part of the change is NFC. I think I've addressed your other comments, so the other commits in the stack should also be ready for re-review also. Thanks! |